prompt
stringlengths 98
11.7k
| 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.
[98.788, -10.935, 154.847, 241.275, 14.539]
[ 0.198 -0.022 0.311 0.484 0.029]
[-46.5, 4.215, 105.396, 76.508]
[-0.333 0.03 0.755 0.548]
[-71.132, 105.021, 187.869, 186.196, 79.916, 140.699, -23.535, 83.557, -25.901, -58.718]
| [-0.118 0.174 0.311 0.308 0.132 0.233 -0.039 0.138 -0.043 -0.097]
|
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.
I do n't think you 've done anything wrong , but sometimes you do the right thing for the wrong reason .
no
You will appreciate the good things more .
no
Sometimes being " polite " leads to a lot missed signals and pent up frustration for the person who is sending those signals .
| no
|
Generate a 4-star review (1 being lowest and 5 being highest) about an app with package at.tomtasche.reader.
| Awesome!! |
Generate a 4-star review (1 being lowest and 5 being highest) about an app with package de.danoeh.antennapod.
A: | Brilliant podcast app Ease of use makes this the go to podcast app for me |
Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Input: Which apartment type code is the most common among apartments with more than one bathroom?
Output: | SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 |
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
> So for maybe 6 years , maybe more , I 've been unable unless in certain , rare cases , to feel emotions or have emotional responses to things .
no
I would stay at school to do all of my work , instead of going home because I would just dick around when I was at home .
yes
First remember you 're only 17 , you have your whole life ahead of you .
| no
|
Q: 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.
[2, 10, 7, 1, 2, 9, 9] , [10, 7, 6, 6, 8, 10, 5]
A: | [7, 10] |
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: | داستان |
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.
Input: Overall, I'd say, we'd spare ourselves a lot if we just went with locking some people up and throwing away the key.
Output: | Valid |
Detailed Instructions: Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
See one example below:
Problem: 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.
Solution: You know what, come tell us at the community pool.
Explanation: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Problem: Now, the word has gotten out and if people find out, this could be the end of the space force as we know it.
Solution: | That's right. This could bring down the entire space force, Colonial. |
instruction:
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.
question:
x = 5, equation weights = [9, 3]
answer:
48
question:
x = 3, equation weights = [3, 8, 2]
answer:
53
question:
x = 2, equation weights = [0, 6, 1]
answer:
| 13
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: just pointing out that you argue to eliminate the death penalty, but your argument is tagged as 'Hang 'em high'
Student: | Valid |
Part 1. Definition
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.
Part 2. Example
কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
Answer: religious
Explanation: Here it expresses hate against the religion, hence tagged as religious.
Part 3. Exercise
ইহুদীরা সব সময় মিথ্যে বলে আসছে,আর ভবিষ্যতে ও বলবে।
Answer: | religious |
You will be given a definition of a task first, then some input of the task.
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy.
The other fact is that the ground state, the lowest energy state of a quantum system, the wave function is always very smooth -- has the minimum number of wiggles.
Output: | Druga činjenica je ta da primarno stanje, najniža energija kvantnog sistema, -- a funkcija vala je uvijek mirna -- ima minimalan broj titraja. |
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...'.
Ex Input:
These children are very smart. You need to be able to fool them.
Ex Output:
OK. Let's get started then. My mom will be so proud when she finds out I'm a dentist.
Ex Input:
I noticed you keep backing out of the room, but holding eye contact with me.
Ex Output:
That's right, because we like to look at you, baby morgue man.
Ex Input:
Poseidon's Delight? That sounds fantastic. He was a god, so it must be good.
Ex Output:
| Let our stomachs take the odyssey through Poseidon's Delight. We'll take it.
|
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
--------
Question: 4101 @ 5888 # 877 # 7900 # 6062 @ 6246
Answer: 1396
Question: 9938 # 267 # 6696 # 8186 # 5729 # 8517 # 6331 @ 7607
Answer: -18181
Question: 8552 # 1559 # 9197 # 2232
Answer: | -4436
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: The fact that you believe a person should be executed for kicking a dog demonstrates that you are one f those unhinged vigliante sorts; your sort should be chlorinated from the gene pool before you become a serial killer.
Student: | 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
[Q]: When a change is made to the privacy policy that significantly affects data practices, users are personally notified. Users must agree before their data is treated according to the new privacy policy.
[A]: Not Specified
[Q]: You can make a choice about your privacy not described by our label scheme the use of unspecified information by an unspecified party for an unspecified purpose.
[A]: Unspecified
[Q]: Data transfer between user and website/app is encrypted, e.g., SSL, TLS, HTTPS.
[A]: | Not Specified
|
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Q: [{'first': -32, 'second': -28}, {'first': 79, 'second': 13}, {'first': -91, 'second': -66}, {'first': 14, 'second': 54}, {'first': -64, 'second': 61}, {'first': -85, 'second': -50}, {'first': 28, 'second': -12}, {'first': -82, 'second': -19}]
A: [{'first': -91, 'second': -66}, {'first': -85, 'second': -50}, {'first': -82, 'second': -19}, {'first': -64, 'second': 61}, {'first': -32, 'second': -28}, {'first': 14, 'second': 54}, {'first': 28, 'second': -12}, {'first': 79, 'second': 13}]
****
Q: [{'first': 3, 'second': 44}, {'first': 1, 'second': 40}]
A: [{'first': 1, 'second': 40}, {'first': 3, 'second': 44}]
****
Q: [{'first': -32, 'second': -27}, {'first': -91, 'second': -71}, {'first': 76, 'second': -62}, {'first': -35, 'second': 32}, {'first': -90, 'second': 89}, {'first': 52, 'second': 18}, {'first': 98, 'second': -58}, {'first': 8, 'second': 70}]
A: | [{'first': -91, 'second': -71}, {'first': -90, 'second': 89}, {'first': -35, 'second': 32}, {'first': -32, 'second': -27}, {'first': 8, 'second': 70}, {'first': 52, 'second': 18}, {'first': 76, 'second': -62}, {'first': 98, 'second': -58}]
****
|
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 |
You will be given a definition of a task first, then some input of the task.
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.
[1, 2, 3, 3, 1]
Output: | [2] |
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.
Problem:x = 1, equation weights = [1, 6]
Solution: | 7 |
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
|
Given the task definition, example input & output, solve the new input case.
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
Output: bYubfmxyTqR, AcDbfmxSnI
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'
New input case for you: RphwbLgNJBzNKbxLzyslrLJiaexlPdcUDyrTRQNrnBlUxs, RPGUNKbxLzyslrLJiaexlPiqOIAfDrwvMcifAoHj
Output: | RphwbLgNJBzabeijkllllnprsxxyzdcUDyrTRQNrnBlUxs, RPGUabeijkllllnprsxxyziqOIAfDrwvMcifAoHj |
Part 1. Definition
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.
Part 2. Example
original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence .
Answer: Tense
Explanation: The verbs in this example are changed from past tense to present tense.
Part 3. Exercise
original sentence: I tried to paint a picture of an orchard , with lemons in the lemon trees , but they came out looking more like light bulbs . paraphrase: i tried to paint a picture of an orchard , with citrus in the citrus trees , but they came out looking more like light bulbs .
Answer: | Synonym |
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.
|
Teacher: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Teacher: Now, understand the problem? If you are still confused, see the following example:
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.
Solution: No
Reason: Both participants do not agree to the deal, so the answer is No.
Now, solve this instance: THEM: you can have the 3 hats YOU: okay.
Student: | Yes |
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.
Example: crystal
Example solution: rock
Example explanation: A crystal is a type of rock, so rock is a valid hypernym output.
Problem: chap
| Solution: male |
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? |
You will be given a definition of a task first, then some input of the task.
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.
[635, 155]
Output: | [] |
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.
Ex Input:
original sentence: Carol believed that Rebecca suspected that she had stolen the watch . paraphrase: Carol and Julia believed that Rebecca and Nancy suspected that they had stolen the watch .
Ex Output:
Number
Ex Input:
original sentence: In July , kamchatka declared war on Yakutsk . Since Yakutsk's army was much better equipped and ten times larger , they were defeated within weeks . paraphrase: In July , kamchatka suddenly declared war on Yakutsk . Since Yakutsk's army clearly was much better equipped and ten times larger , they predictably were defeated within weeks .
Ex Output:
Adverb
Ex Input:
original sentence: This book introduced Shakespeare to Ovid ; it was a major influence on his writing . paraphrase: This book reportedly introduced Shakespeare to Ovid ; it supposedly was a major influence on his writing .
Ex Output:
| 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.
--------
Question: [4, 6, 4, 6, 5, 5, 6, 5]
Answer: []
Question: [2, 5, 5, 6, 6, 5]
Answer: [2]
Question: [3, 3, 2, 7, 2, 7, 2, 7, 0, 2]
Answer: | [0]
|
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.
Input: Set1: '{1, 5, 9, 10, 11, 13, 15, 20}', Set2: '{5, 9, 10, 12, 13, 14, 18, 19}'. How many elements are there in the union of Set1 and Set2 ?
Output: | 12 |
Q: 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.
I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK
A: | walk left thrice and walk around right |
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]: The patient's blurred vision gradually improved, but visual field defect remained.
[A]: non-adverse drug event
[Q]: PURPOSE: Symptomatic visual field constriction thought to be associated with vigabatrin has been reported.
[A]: adverse drug event
[Q]: A challenge with clozapine was feasible and showed no clinical symptoms of eosinophilia.
[A]: | non-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 |
You will be given a definition of a task first, then some input of the task.
In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer:
name: The Eagle,...
eatType: restaurant, coffee shop,...
food: French, Italian,...
priceRange: cheap, expensive,...
customerRating: 1 of 5 (low), 4 of 5 (high)
area: riverside, city center, ...
familyFriendly: Yes / No
near: Panda Express,...
The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect.
Located next to The Rice Boat is Loch Fyne, offering high-end Italian.
Output: | name[Loch Fyne], food[Italian], customer rating[5 out of 5], area[riverside], near[The Rice Boat] |
Detailed Instructions: You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
Q: original sentence: The cat was lying by the mouse hole waiting for the mouse , but it was too cautious . paraphrase: The mouse was waited for by the cat lying by the mouse hole , but it was too cautious .
A: | Voice |
Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
Input: Consider Input: One thousand francs for one thousand Pepsis? In Brussels they're 25p.
Output: Well then go back to Brussels, ya Brussel Sprout head.
Input: Consider Input: I feel like we have so much in common. Do you guys want to go to lunch?
Output: Well, we'd love to have lunch, but we're getting ready to see Hamilton.
Input: Consider Input: It's getting really hot.
| Output: I wish I would have brought water. I thought we would just have some on the way out. Honestly, I thought this was going to be a snap.
|
You will be given a definition of a task first, then some input of the task.
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.
I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP
Output: | jump around left twice after jump opposite right 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.
Q: Like I said I would just want them to actually have to deal with the consequences and not get an easy out, which is what executing them does.
A: Valid
****
Q: My point was that there are ways of dealing with violent criminals, murderers even, without executing them.
A: Valid
****
Q: If inmates in for life actually got life in 100% of the cases, I'd be more inclined to support a ban on capital punishment.
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.
All patients except two had new recurrences within the observation time.
non-adverse drug event
A healthy, 30-year-old man, exposed to sulindac on two separate occasions, had an incapacitating isolated idential sensory neuropathy.
adverse drug event
Clofazimine enteropathy caused by crystal deposition can be life-threatening.
| 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.
Ex Input:
silver
Ex Output:
element
Ex Input:
gun
Ex Output:
artefact
Ex Input:
chair
Ex Output:
| seat
|
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Q: threeeightfivesevenonefivefiveninefoureightzerothree
A: 385715594803
****
Q: fouronenineeightninefourthreefivethreefoureight
A: 41989435348
****
Q: ninesevenninefoursixonethree
A: | 9794613
****
|
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.
Problem:Sentence: Turn {{ up }} your sound a bit .
Word: up
Solution: | RP |
Part 1. Definition
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.
Part 2. Example
[{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Answer: [{'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.
Part 3. Exercise
[{'first': 10, 'second': 74}, {'first': -7, 'second': 43}, {'first': 37, 'second': 93}, {'first': -28, 'second': -43}, {'first': -90, 'second': -73}, {'first': 96, 'second': 13}, {'first': -74, 'second': -81}, {'first': 13, 'second': -59}, {'first': -29, 'second': 95}]
Answer: | [{'first': -90, 'second': -73}, {'first': -74, 'second': -81}, {'first': -29, 'second': 95}, {'first': -28, 'second': -43}, {'first': -7, 'second': 43}, {'first': 10, 'second': 74}, {'first': 13, 'second': -59}, {'first': 37, 'second': 93}, {'first': 96, 'second': 13}] |
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.
Q: The increasing prevalence of methamphetamine abuse and the severity of the associated ulcers should alert ophthalmologists to the problem of methamphetamine-related keratitis.
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 |
Detailed Instructions: You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
Problem:original sentence: I tried to paint a picture of an orchard , with lemons in the lemon trees , but they came out looking more like telephone poles . paraphrase: i tried to paint a picture of an orchard , with citrus in the citrus trees , but they came out looking more like telephone poles .
Solution: | Synonym |
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.
One example is below.
Q: [1, 2, 3]
A: [0.167, 0.333, 0.500]
Rationale: 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: [111.464, 247.804]
A: | [0.31 0.69] |
Part 1. Definition
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?"
Part 2. Example
Fact: pesticides can harm animals.
Answer: What can harm animals?
Explanation: It's a good question because it is formed by simply replacing the word "pesticides" with "what".
Part 3. Exercise
Fact: Ecology studies something that decreases when an animal species is harmed.
Answer: | Ecology studies something that decreases when an animal species is what? |
instruction:
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: eq { hop { argmax { all_rows ; design flow ( lpm ) } ; location } ; marcala , hon }, interpretation: select the row whose design flow ( lpm ) record of all rows is maximum . the location record of this row is marcala , hon .
answer:
yes
question:
Command: and { greater { hop { filter_eq { all_rows ; name ; adam gilchrist ( wk ) } ; innings } ; hop { filter_eq { all_rows ; name ; matthew hayden } ; innings } } ; and { eq { hop { filter_eq { all_rows ; name ; adam gilchrist ( wk ) } ; innings } ; 8 } ; eq { hop { filter_eq { all_rows ; name ; matthew hayden } ; innings } ; 6 } } }, interpretation: select the rows whose winning team record fuzzily matches to texas . among these rows , select the rows whose winning pitcher record fuzzily matches to chris young . the number of such rows is 2 .
answer:
no
question:
Command: eq { diff { hop { filter_eq { all_rows ; mens singles ; alan budi kusuma } ; year } ; hop { filter_eq { all_rows ; mens singles ; hermawan susanto } ; year } } ; -1 year }, interpretation: select the rows whose mens singles record fuzzily matches to alan budi kusuma . take the year record of this row . select the rows whose mens singles record fuzzily matches to hermawan susanto . take the year record of this row . the second record is 1 year larger than the first record .
answer:
| 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.
Ex Input:
[{'first': -69, 'second': 42}, {'first': 37, 'second': 23}, {'first': -60, 'second': -54}, {'first': 3, 'second': 43}]
Ex Output:
[{'first': -69, 'second': 42}, {'first': -60, 'second': -54}, {'first': 3, 'second': 43}, {'first': 37, 'second': 23}]
Ex Input:
[{'first': 21, 'second': 66}, {'first': 84, 'second': -93}, {'first': -6, 'second': -6}, {'first': -12, 'second': -56}, {'first': -76, 'second': 40}]
Ex Output:
[{'first': -76, 'second': 40}, {'first': -12, 'second': -56}, {'first': -6, 'second': -6}, {'first': 21, 'second': 66}, {'first': 84, 'second': -93}]
Ex Input:
[{'first': -41, 'second': 26}, {'first': 60, 'second': -80}, {'first': -3, 'second': 4}, {'first': 48, 'second': 18}, {'first': -89, 'second': 32}]
Ex Output:
| [{'first': -89, 'second': 32}, {'first': -41, 'second': 26}, {'first': -3, 'second': 4}, {'first': 48, 'second': 18}, {'first': 60, 'second': -80}]
|
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
[Q]: sevenfivefourthreesevenfourfour
[A]: 7543744
[Q]: sixsixfivefourthreezerofive
[A]: 6654305
[Q]: onefourfivethreefourfoursixoneeightfourseventwo
[A]: | 145344618472
|
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.
ZfsiBTPOtPcr, FDBTPOtPiP
Zfsiboppttcr, FDboppttiP
jtrfilAzZA, NBCwrfilRe
jtfilrAzZA, NBCwfilrRe
dfVZRiICIMrtG, bbkuiICIMFRy
| dfVZRciiimrtG, bbkuciiimFRy
|
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 |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you 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.
[1, 2, 3]
Solution: [0.167, 0.333, 0.500]
Why? 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.
New input: [52.585, -23.794, -4.998, -12.654, -76.625]
Solution: | [-0.803 0.363 0.076 0.193 1.17 ] |
TASK DEFINITION: In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
PROBLEM: Command: eq { hop { argmax { all_rows ; attendance } ; date } ; 1970 - 10 - 04 }, interpretation: select the row whose attendance record of all rows is maximum . the date record of this row is 1970 - 10 - 04 .
SOLUTION: yes
PROBLEM: Command: eq { hop { argmin { all_rows ; first elected } ; incumbent } ; mike doyle }, interpretation: for the nationality records of all rows , most of them fuzzily match to canada .
SOLUTION: no
PROBLEM: Command: greater { hop { filter_eq { all_rows ; english title ; bad education } ; year } ; hop { filter_eq { all_rows ; english title ; city of god } ; year } }, interpretation: select the rows whose english title record fuzzily matches to bad education . take the year record of this row . select the rows whose english title record fuzzily matches to city of god . take the year record of this row . the first record is greater than the second record .
SOLUTION: | yes
|
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.
Her case was complicated by social and behavioral issues.
non-adverse drug event
Iatrogenic hypercalcemia due to vitamin D3 ointment (1,24(OH)2D3) combined with thiazide diuretics in a case of psoriasis.
adverse drug event
We report the case histories of identical twin brothers who developed concordant acute lymphoblastic leukemia at the age of 4 years and who later developed leukoencephalopathy and hydrocephalus related to central nervous system prophylaxis by, in the first case intrathecally administered methotrexate and, in the second by intrathecally administered methotrexate and cranial irradiation.
| 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
Q: 1949 @ 526 @ 1777 @ 8065 @ 2790 # 1800 # 486 @ 229 @ 7738
A: 20788
****
Q: 9924 @ 6266 # 7022 # 7976 # 2541 @ 5396
A: 4047
****
Q: 4995 # 7147 @ 9561 # 7122 @ 9039 # 5012 # 5763 # 8281 @ 31
A: | -9699
****
|
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.
Input: [1, 2, 0, 4, 2, 6, 6, 3]
Output: | [1, 0, 4, 3] |
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.
One example is below.
Q: I_TURN_LEFT I_JUMP
A: jump left
Rationale: If the agent turned to the left and jumped, then the agent jumped to the left.
Q: I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_RIGHT
A: | turn right after jump around left 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 |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following 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.
Solution: yes
Reason: 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'.
Now, solve this instance: Command: eq { count { filter_eq { filter_eq { all_rows ; nationality ; united states } ; college / junior / club team ( league ) ; university of notre dame } } ; 2 }, interpretation: select the rows whose nationality record fuzzily matches to united states . among these rows , select the rows whose college / junior / club team ( league ) record fuzzily matches to university of notre dame . the number of such rows is 2 .
Student: | yes |
Q: In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer:
name: The Eagle,...
eatType: restaurant, coffee shop,...
food: French, Italian,...
priceRange: cheap, expensive,...
customerRating: 1 of 5 (low), 4 of 5 (high)
area: riverside, city center, ...
familyFriendly: Yes / No
near: Panda Express,...
The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect.
The Waterman is a kid friendly restaurant with high customer ratings. It serves fast food and its dishes range between £20 and £25. It is located in the city centre.
A: | name[The Waterman], food[Fast food], priceRange[£20-25], customer rating[high], area[city centre], familyFriendly[yes] |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you 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.
[16, 205, 171, 2, 9, 317]
Solution: [16, 256, 128, 2, 8, 256]
Why? Every integer in the input list is rounded to the nearest power of 2. The number 2 and 16 are in the input list and both are a power of 2, therefore rounding to the closest power of 2 returns the same number. This is a good example.
New input: [197, 10, 1540, 905, 23, 72, 3, 31, 1388, 3418, 1290, 15, 45, 3, 188]
Solution: | [256, 8, 2048, 1024, 16, 64, 4, 32, 1024, 4096, 1024, 16, 32, 4, 128] |
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 |
TASK DEFINITION: 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.
PROBLEM: [{'first': -96, 'second': -70}, {'first': 65, 'second': 21}, {'first': 85, 'second': 27}, {'first': 23, 'second': -27}, {'first': -50, 'second': 18}]
SOLUTION: [{'first': -96, 'second': -70}, {'first': -50, 'second': 18}, {'first': 23, 'second': -27}, {'first': 65, 'second': 21}, {'first': 85, 'second': 27}]
PROBLEM: [{'first': 67, 'second': 35}, {'first': -84, 'second': 100}, {'first': 6, 'second': 31}, {'first': -15, 'second': 77}]
SOLUTION: [{'first': -84, 'second': 100}, {'first': -15, 'second': 77}, {'first': 6, 'second': 31}, {'first': 67, 'second': 35}]
PROBLEM: [{'first': 85, 'second': -91}, {'first': -98, 'second': -31}, {'first': 16, 'second': 65}]
SOLUTION: | [{'first': -98, 'second': -31}, {'first': 16, 'second': 65}, {'first': 85, 'second': -91}]
|
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. |
Part 1. Definition
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.
Part 2. Example
[2,5,1,4],[2,5,8,4,2,0]
Answer: [2,4,5]
Explanation: The elements 2,4, and 5 are in both lists. This is a good example.
Part 3. Exercise
[9, 2, 3, 7, 6, 1, 6, 2, 7] , [7, 8, 5, 2, 5, 6, 8, 5, 7]
Answer: | [2, 6, 7] |
Given the task definition and input, reply with output. 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.
[5.875, 60.329, 58.348, 53.317, 16.923, 35.484, 55.278, 97.912, 142.61, 193.275]
| [0.008 0.084 0.081 0.074 0.024 0.049 0.077 0.136 0.198 0.269] |
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]: [57, -23, 30, -12, 65, -27, 65, -58, -47, -78]
[A]: 0
[Q]: [-4, 3, -73]
[A]: 7
[Q]: [-7, 59, 0]
[A]: | 7
|
In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order.
Input: Consider Input: [9, 8, 3, 7, 2, 1, 6, 6, 4, 8] , [4, 2, 4, 8, 8, 7, 8, 3, 7, 4]
Output: [2, 3, 4, 7, 8]
Input: Consider Input: [1, 8, 3, 4, 8, 5, 6, 10, 7] , [3, 8, 7, 5, 7, 1, 7, 3, 6]
Output: [1, 3, 5, 6, 7, 8]
Input: Consider Input: [10, 10, 5, 10, 1, 8, 6, 5, 5, 1] , [6, 1, 6, 2, 4, 7, 1, 9, 4, 9]
| Output: [1, 6]
|
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
|
Definition: 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: [135, 1324, 900, 1544, 19, 44, 2, 53, 1500, 1923, 3202]
Output: | [128, 1024, 1024, 2048, 16, 32, 2, 64, 1024, 2048, 4096] |
instruction:
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.
question:
And these are flytrap anemones.
answer:
A ovo su muholovke anemone.
question:
What is math?
answer:
Što je matematika?
question:
(Applause) The most powerful thing of all, it's not that I didn't achieve before then -- oh my God, I did.
answer:
| (Pljesak) Najmoćnija stvar od svega, nije da nisam uspjela prije toga -- o moj Bože, jesam.
|
Detailed Instructions: 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.
See one example below:
Problem: crystal
Solution: rock
Explanation: A crystal is a type of rock, so rock is a valid hypernym output.
Problem: commitment
Solution: | sincerity |
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.
--------
Question: corVoOd, IzrVoKvF
Answer: coorvOd, IzorvKvF
Question: JkqeobLHEutiYSB, QziLHEutiQLanJ
Answer: JkqeobehiltuYSB, QziehiltuQLanJ
Question: vsdSEDYZlxXgHtYquFK, FnTLDmdSEDYZlxXmTUbbo
Answer: | vsddelsxxyzgHtYquFK, FnTLDmddelsxxyzmTUbbo
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Context: 'If you want the firewood then im getting another water' 'okay. 3 pack of water 2 pack of water and 1 pack of fire wood for mine. deal??' 'wait man i need 1 fire wood i give 1 water to you i must need 1 fire wood'
Utterance: 'Are you mad. what can i do with out water..'
Student: | Yes |
You will be given a definition of a task first, then some input of the task.
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: Nicole decided to kiss another man behind her boyfriend's back.
Initial Context: One night she snuck outside the bar to meet her lover.
Original Ending: The second Nicole's lover gave her a kiss her boyfriend drove by. Nicole's boyfriend squealed into the parking lot in front of the two. The boyfriend broke up with Nicole on the spot.
Counterfactual Context: One night she found out her lover had a girlfriend.
Output: | The second Nicole's lover gave her a kiss his girlfriend drove by. His girlfriend squealed into the parking lot in front of the two. The boyfriend broke up with Nicole on the spot. |
TASK DEFINITION: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
PROBLEM: zerothreefivethreeeightsixfoursixeightonefourseven
SOLUTION: 035386468147
PROBLEM: eightzeroseveneightsixthreeeightfourfivesixeight
SOLUTION: 80786384568
PROBLEM: threethreeeightzeronineonefourninefivesixfive
SOLUTION: | 33809149565
|
Q: 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.
Context: 'Please do understand my situation its very very critical to give 2 food packages to you.Instead you can take 3 waters and firewood too.' 'No that will not work for me given that I have 4 growing children of different ages who eat like adults. I need at least 2 food packages and 1 water. That gives you 1 food package and 2 waters and 3 firewoods.' 'I too have children who eat like adults they too can't able to withstand hunger so you please show some mercy and give me 3 food packages and take all water and firewood'
Utterance: 'No I need extra food too. I cannot let my children starve and you cant let your children go thirsty. So if you cant agree to share the food i will walk away from the deal.'
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 |
You will be given a definition of a task first, then some input of the task.
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.
das beste fehlt... . der song der ersten szene fehlt: suddenly i see (KT Tunstall) und der läuft im film immerhin mind. drei minuten. ausserdem: i don't love anyone (Belle and Sebastian)
Output: | NEG |
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
|
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
Given a 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.
I_TURN_LEFT I_JUMP
Solution: jump left
Why? If the agent turned to the left and jumped, then the agent jumped to the left.
New input: I_WALK I_JUMP I_JUMP I_JUMP
Solution: | jump thrice after walk |
Q: 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.
I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT
A: | turn opposite right thrice after look around left twice |
TASK DEFINITION: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
PROBLEM: hit
SOLUTION: quit
PROBLEM: against
SOLUTION: fenced
PROBLEM: sound
SOLUTION: | ground
|
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.
[-46, -99, -56, -89, 4, 44, 39, 36, 32, 72] | 3 |
Given the task definition, example input & output, solve the new input case.
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.
Example: 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
Output: Invalid
It is not an argument on the topic of death penalty.
New input case for you: Just go to Google Directory, Society / Issues / Death penalty, and you'll find plenty of info.
Output: | Valid |
Detailed Instructions: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
See one example below:
Problem: 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.
Solution: No
Explanation: Both participants do not agree to the deal, so the answer is No.
Problem: THEM: i would like 3 balls and the hat and book YOU: well, since this hit calls for us to negotiate an agreement. i'd like to find an offer that works for the both of us instead of giving you every item. you can definitely have the book, what else would you like to offer? THEM: that was my opener so i expect counter offers of course, i don't really want the book and would much prefer the balls over anything else. YOU: book has no value to me at all, i assume it'll give you minimal points. i'd be ok with two balls and the hat? THEM: anyway i can get 3 balls? YOU: that wouldn't allow me any points. i need to settle at 3 balls, or two balls and the hat ; can we make one of them work? THEM: i guess we can do 2 balls for me and the book. you get 2 balls and the hat YOU: i assume that's fair. deal.
Solution: | Yes |
You will be given a definition of a task first, then some input of the task.
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: Carlos decided he wanted to start making coffee at home.
Initial Context: He tried making it one morning.
Original Ending: It came out very well. Charles enjoyed drinking his coffee. He decided to continue to make coffee each day.
Counterfactual Context: He tried making it one morning but will never enjoy coffee again.
Output: | It came out very bad. Charles instead now enjoyed drinking tea. He decided to continue to make tea each day. |
Subsets and Splits