prompt
stringlengths 114
7.32k
| response
stringlengths 1
469
|
---|---|
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...'.
Input: Are you thinking what I'm thinking?
Output: | I am. I'm thinking that we should all create a musical group, like Abba. |
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Q: [ 5.963 17.536 -25.268]
A: | -25.268 |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
See one example below:
Problem: [47, 444, 859, 530, 197, 409]
Solution: [47, 859, 197, 409]
Explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Problem: [769, 569, 277, 762, 277, 402]
Solution: | [769, 569, 277, 277] |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Example input: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Example output: adverse drug event
Example explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Q: The patient was initially treated for presumed bacterial peritonitis but remained febrile and had persistent abdominal pain and peritoneal fluid pleocytosis, despite broad-spectrum antibiotic therapy.
A: | non-adverse drug event |
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.
Example input: I_TURN_LEFT I_JUMP
Example output: jump left
Example explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Q: I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_RUN
A: | walk around right and run |
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Q: Context: 'Yes A little.. But I would need extra camping items ' 'Ok, I do too. What do you really need?' 'Thanks for asking ..! I will need 3 of food, 3 of water and 2 of firewood..'
Utterance: 'I really need water though. Are you sure you need that much?'
A: | Yes |
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Q: invalid
A: bad
****
Q: citation
A: rule
****
Q: woman
A: | human
****
|
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations.
¿hay un "red lobster" cerca de mí?
is there a " red lobster " near me ?
quiero comida " mexican "
i want " mexican " food
¿cuál es el rango de precios del restaurante " mexican " más cercano?
| what is the price range of the nearest " mexican " restaurant ?
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Today i had one of my best recent memories was when I took my dad to the Game 7 watch party for the Stanley Cup. It was an away game so we couldn't go to the actual game but we had the next best thing in watching it at the stadium with 20 thousand other fans. My dad said he didn't want to go since he couldn't handle the stress of the game but i surprised him with tickets anyways. This was a big deal for me since my dad is the reason I am into hockey and he had been watching the Blues his whole life and they have never won it. I knew he would regret it if he just stayed home watching the game alone instead of having the chance to be downtown if we actually won it. It was a stressful start of the game but luckily we scored first and never looked back. We looked like a team on a mission and that mission was to bring the Stanley cup to our town for the first time ever. I could see my dad got a little more happy and less stressed with each goal we scored like he was starting to believe we might actually do it. I was also freaking out inside because i knew we had been close before but always got let down and anything can happen in sports. Its never over until the final horn sounds so in the back of our minds we kept thinking the worst. When they actually did it we went crazy with all the other people at the stadium but also I could see my dad crying a little. It brought me joy to know how happy he was in this moment and i was glad i was here to share it with him. This is something we will continue to talk about for years to come and we will always know where we were when it happened. He brought me to a game 7 in the world series when i was young so this was also a way for me to repay the favor but i hope to repay it again sometime in our lifetime with an actual game ticket. To be in that stadium though when the whole city felt like they won was a great memory to have and one that I will be forever grateful i shared with my dad.
Student: | recalled |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Set1: '{2, 3, 6, 9, 10, 14, 15, 20}', Set2: '{3, 5, 7, 9, 12, 15, 16}'. How many elements are there in the union of Set1 and Set2 ?
Solution: 12
Reason: The union of Set1 and Set2 is {2, 3, 5, 6, 7, 9, 10, 12, 14, 15, 16, 20}. It has 12 elements. So, the answer is 12.
Now, solve this instance: Set1: '{3, 4, 8, 12, 14, 15, 16, 19}', Set2: '{2, 4, 9, 10, 11, 13, 14, 17, 18}'. How many elements are there in the union of Set1 and Set2 ?
Student: | 15 |
Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
Input: জী ভাই সুন্দর কথা বলেছেন।তাদের জন্য আমাদের দেশের এই সমস্যা।তারা কোরআন সম্পর্কে কিছু জানেনা অথচ চিল্লাই।
Output: | religious |
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Input: Consider Input: [ -6.754 -71.122]
Output: -71.122
Input: Consider Input: [-35.444 64.434 -85.552 -70.53 ]
Output: -85.552
Input: Consider Input: [ 54.723 -88.227 54.651]
| Output: -88.227
|
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Q: Context: 'Okay, well if you need water and firewood, that only leaves food. If you can part with extra food, here's what I'm proposing' 'Yes you can definitely have all the food. Maybe 2 firewoods and 2 waters for me?' 'Sounds good to me.'
Utterance: 'Ok great would it be ok if we have 1 of the foods?'
A: | No |
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: These children aged 2.5-15 years were treated for Burkitt's lymphoma, Ewing's tumour, small cell bone tumour or medulloblastoma.
A: | non-adverse drug event |
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Example input: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Example output: Advertising
Example explanation: The given policy text states that it uses user information for 'advertising' explicitly
Q: The site collects your computer information for analytics or research. Collection happens in an unspecified way, and your data is identifiable.
A: | Analytics/Research |
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 an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
difficult
Solution: No
Why? The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
New input: famous
Solution: | amos |
Q: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
had
A: | chad |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Example input: Find the id and city of the student address with the highest average monthly rental.
Example output: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Example explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example.
Q: Show all the grades of the high schoolers.
A: | SELECT grade FROM Highschooler |
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: On Monday I called and again it was a big to - do to find anyone {{ who }} knew anything about it .
Word: who
Solution: | WP |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_TURN_LEFT I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN
A: | run around left twice after run opposite left |
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
See one example below:
Problem: main()
{
float a[4];
float k;
float c;
int i;
for(i=0;i<4;i++)
{
scanf("%f",&a[i]);
}
scanf("%f",&c);
c=2*3.1415926*c/360;
k=(a[0]+a[1]+a[2]+a[3])/2;
double s,sq;
sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2);
if(sq<0)
printf("Invalid input");
else
{
s=sqrt(sq);
printf("%.4f",s);
}
}
Solution: 1
Explanation: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example.
Problem: //????????
//??????
int f(int a,int m) //???a???????m?????????
{
if(a<m)
return 0;
int kind=1;
for(int i=m;i<a;i++)
{
if(a%i==0) //??????????????
kind=kind+f(a/i,i);
}
return kind;
}
int main()
{
int n,a[100];
cin>>n;
for(int i=0;i<n;i++) //??n???
cin>>a[i];
for(int i=0;i<n;i++)
cout<<f(a[i],2)<<endl; //????
return 0;
}
Solution: | 3 |
Teacher:In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Teacher: Now, understand the problem? Solve this instance: Antarctica
Student: | Co-administrated |
Given the task definition, example input & output, solve the new input case.
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.
Example: Set1: '{2, 3, 6, 9, 10, 14, 15, 20}', Set2: '{3, 5, 7, 9, 12, 15, 16}'. How many elements are there in the union of Set1 and Set2 ?
Output: 12
The union of Set1 and Set2 is {2, 3, 5, 6, 7, 9, 10, 12, 14, 15, 16, 20}. It has 12 elements. So, the answer is 12.
New input case for you: Set1: '{2, 6, 7, 11, 20}', Set2: '{2, 3, 5, 9, 17, 18, 19}'. How many elements are there in the union of Set1 and Set2 ?
Output: | 11 |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Let me give you an example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
The answer to this example can be: adverse drug event
Here is why: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
OK. solve this:
In two patients, no myocardial infarction occurred, as shown by a normal postoperative left ventricular angiogram.
Answer: | non-adverse drug event |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Find the id and city of the student address with the highest average monthly rental.
Solution: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Reason: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example.
Now, solve this instance: List Aerosmith's albums.
Student: | SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith" |
TASK DEFINITION: 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.
PROBLEM: 23:09 Hrs
SOLUTION: 11:09 PM
PROBLEM: 19:47 Hrs
SOLUTION: 07:47 PM
PROBLEM: 11:06 Hrs
SOLUTION: | 11:06 AM
|
Detailed Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Q: Fact: flowers form on the angiosperm.
A: | where do flowers form? |
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.
One example is below.
Q: x = 3, equation weights = [4, 2]
A: 14
Rationale: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14.
Q: x = 5, equation weights = [0, 7, 1, 4]
A: | 184 |
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 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
The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Solution: Advertising
Why? The given policy text states that it uses user information for 'advertising' explicitly
New input: The site collects your contact information for a purpose outside of our label scheme. Collection happens by some means outside of our label scheme. You can configure your privacy using a method outside our label scheme for the use of your information.
Solution: | Other |
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
One example is below.
Q: [-11, 2, 3]
A: -11
Rationale: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example.
Q: [-95.466 -47.918 -18.796 42.282 22.746 86.691 72.45 -61.238 -63.766]
A: | -95.466 |
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
[Q]: 'English : Not the first time','Kurdish : Ev ne cara pêşiyê ye'
[A]: Yes
[Q]: 'English : The curfew declared in Ilıcak village of Beytüşşebap district of Şırnak province has been lifted.','Kurdish : Qedexeya li ser Gundê Germavê hat rakirin.'
[A]: Yes
[Q]: 'English : The attack occurred in Mendi region between Aktütün and Beyyurdu bordering Iraq 70 km far from Şemdinli district center at around 2 p.m. today (May 18).','Kurdish : Êriş îro saet 14:00an de nêzî gundê Bêzelê ku 70 km dûrê navçeya Şemzînanê ye, pêk hat.'
[A]: | Yes
|
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.
Ex Input:
What are the first and last names of the performer who was in the back stage position for the song "Badlands"?
Ex Output:
SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
Ex Input:
How many users are logged in?
Ex Output:
SELECT count(*) FROM users WHERE user_login = 1
Ex Input:
Find the names of all patients who have an undergoing treatment and are staying in room 111.
Ex Output:
| SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111
|
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Sentence: IT S NOT A {{ BIG }} DEAL BUT I HAD TO TAKE MY SALAD HOME BECAUSE THEY FORGOT TO BRING IT .
Word: BIG
JJ
Sentence: I plan {{ on }} taking a couple of graduate level finance courses at the University of Houston this Summer and Fall to demonstrate to the Admissions office that I can compete at this level .
Word: on
IN
Sentence: If you knew what kind of " meat {{ " }} they put in canned cat food you 'd understand this .
Word: "
| ''
|
Detailed Instructions: In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Problem:[{'first': 60, 'second': -73}, {'first': -77, 'second': 80}, {'first': 11, 'second': -4}, {'first': -94, 'second': 27}, {'first': 42, 'second': 86}]
Solution: | [{'first': -94, 'second': 27}, {'first': -77, 'second': 80}, {'first': 11, 'second': -4}, {'first': 42, 'second': 86}, {'first': 60, 'second': -73}] |
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.
[EX Q]: [128.101, 16.516, 246.993, 104.335, -69.747, 238.429, -26.383]
[EX A]: [ 0.201 0.026 0.387 0.163 -0.109 0.374 -0.041]
[EX Q]: [-51.018, 130.578, -54.191, 144.189, -35.312, -28.86, 128.549, 58.665]
[EX A]: [-0.174 0.446 -0.185 0.493 -0.121 -0.099 0.439 0.2 ]
[EX Q]: [193.441, -63.566, 137.239, 37.699, 103.361, 163.541, -70.357, 214.318, 201.109]
[EX A]: | [ 0.211 -0.069 0.15 0.041 0.113 0.178 -0.077 0.234 0.219]
|
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.
One example: x = 3, equation weights = [4, 2]
Solution is here: 14
Explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14.
Now, solve this: x = 7, equation weights = [5, 9]
Solution: | 44 |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Example: difficult
Example solution: No
Example explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Problem: shop
| Solution: hop |
Detailed Instructions: In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
Q: SIgErAZmmpKZZPPI, iJJxnwIAZmmpKZCKVzTM
A: | SIgErakmmpzzZPPI, iJJxnwIakmmpzzCKVzTM |
Teacher: This task is to find the number of 'For' loops present in the given cpp program.
Teacher: Now, understand the problem? If you are still confused, see the following example:
main()
{
float a[4];
float k;
float c;
int i;
for(i=0;i<4;i++)
{
scanf("%f",&a[i]);
}
scanf("%f",&c);
c=2*3.1415926*c/360;
k=(a[0]+a[1]+a[2]+a[3])/2;
double s,sq;
sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2);
if(sq<0)
printf("Invalid input");
else
{
s=sqrt(sq);
printf("%.4f",s);
}
}
Solution: 1
Reason: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example.
Now, solve this instance: int ways(int n,int p)
{
if(n<p) return 0;
while(n%p!=0) p++;
if(n==p) return 1;
return ways(n/p,p)+ways(n,p+1);
}
int main()
{
int n,m;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>m;
cout<<ways(m,2)<<endl;
}
return 0;
}
Student: | 1 |
Given the task definition and input, reply with output. 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: 'Okay . How much You need each?' '3 Food and 1 Firewood? You get the rest?' 'That's fine.I will accept your deal.Tell me the reason why you need the item?'
Utterance: 'Food for the family, and firewood is a good tool to purify water and cook. Also wanted to make a win-win deal'
| Yes |
This task is to find the number of 'For' loops present in the given cpp program.
Example Input: int zhi(int a);
int yin(int m,int t);
int main()
{
int n,i=0;
int str[10000];
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&str[i]);
i=0;
for(i=0;i<n;i++)
printf("%d\n",yin(str[i],2));
return 0;
}
int zhi(int a)
{
int k=2,flag=0;
for(k=2;k<=a/2;k++)
{
if(a%k==0)
{ flag=1;
break;
}
}
return flag;
}
int yin(int m,int t)
{
int j=t,c=0,b=0,x=0;
int str1[10000][2];
if(m<t&&m!=1)
return 0;
else if(m==1)
return 1;
else if(zhi(m)==0)
return 1;
else
for(j=t;j<=m;j++)
{
if(m%j==0)
{ str1[c][0]=m/j;
str1[c][1]=j;
c++;
}
}
for(b=0;b<c;b++)
{
x+=yin(str1[b][0],str1[b][1]);
}
return x;
}
Example Output: 5
Example Input:
int ispr(int t)
{
int v=(int)sqrt(t*1.0)+1;
for(int i=2; i<v; i++)
if(t%i==0)
return 0;
return 1;
}
int sum;
void fun(int n,int i)
{
if(n==1)
sum++;
for (; i<=n; i++)
{
if(n%i==0)
fun(n/i,i);
}
return ;
}
int main() {
int n;
scanf("%d",&n);
for (int j=0; j<n; j++)
{
int a;
scanf("%d",&a);
if(ispr(a)==1)
{
printf("1\n");
continue;
}
int res=1;
for (int i=2; i<=a/2; i++)
{
if(a%i==0)
{
sum=0;
fun(a/i,i);
res=res+sum;
}
}
printf("%d\n",res);
}
return 0;
}
Example Output: 4
Example Input: int main(){
int hanshu(int k,int min);
int n,i,a;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
printf("%d\n",hanshu(a,2));
}
scanf("%d",&n);
return 0;
}
int hanshu(int k,int min){
int j,a[k],b=1;
if(k<min)return 0;
for(j=min;j<=k/j;j++){
if(k%j==0){
b+=hanshu(k/j,j);
}
}
return(b);
}
Example Output: | 2
|
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.
Input: Consider Input: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:organization.organization.founders ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M0 .
?x1 ns:film.editor.film M0
} Question: What did M0 's spouse found
Output: 0
Input: Consider Input: 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:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.cinematographer.film M1 .
FILTER ( ?x0 != ?x1 )
} Question: Which film editor married a art director and was influenced by M1
Output: 0
Input: Consider Input: Query: SELECT count(*) WHERE {
?x0 ns:film.film.sequel M0 .
M1 ns:film.cinematographer.film ?x0 .
M1 ns:film.editor.film ?x0 .
M1 ns:film.film_art_director.films_art_directed ?x0 .
M1 ns:film.producer.films_executive_produced ?x0
} Question: Was M1 M0 's prequel 's cinematographer , editor , art director , and executive producer
| Output: 1
|
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
One example: [-11, 2, 3]
Solution is here: -11
Explanation: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example.
Now, solve this: [-65.545 39.689 -93.808 24.396 -79.992 84.421 -10.202 -59.12 63.473
13.416]
Solution: | -93.808 |
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Problem:int f(int n,int k){
if(n<k)return 0;
int i,s=1;
for(i=k;i<n;i++){
if(n%i==0)s+=f(n/i,i);
}
return s;
}
int main(){
int m,n,i,ans,s;
scanf("%d",&m);
while(m--){
scanf("%d",&n);
printf("%d\n",f(n,2));
}
return 0;
}
Solution: | 1 |
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
Q: একটা সুখের সংসার কিভাবে মাটিতে মিশিয়ে দিতে হয় তা একমাত্র এই সব মহিলারা পারে
A: | non-religious |
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Q: [ 32.434 -40.387 -88.492 59.613]
A: -88.492
****
Q: [-95.175 57.665 5.36 ]
A: -95.175
****
Q: [ 24.668 -74.191 -62.619 0.2 ]
A: | -74.191
****
|
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [632, 918, 616, 407]
A: | [] |
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.
A few weeks ago, my wife and I headed to Washington state to go hiking in the mountains. As we had never been there before, we were both very excited about the vacation. We packed up the car with our camping gear, put the dog in a kennel and we were off. We arrived in Washington after about 15 hours of non-stop driving. When we arrived in Seattle, the first thing we saw was Mt. Rainier. My wife and I laughed because it reminded us of our first date together in college. We ended up going to a frat party, where they were drinking Rainier beer. It had a drawing of Rainier on the logo. Anyway, when we arrived at the campground, we were absolutely struck by how beautiful the national park was. We were going to be hiking a very long trail the next day, so we quickly set up the tent and got our campsite squared away. My wife, who hadn't been camping very often, was a little bit skittish about the signs we had seen warning of bears. Every time a twig snapped or the wind blew our tent flaps against the tent walls, she started in fright. Eventually, we both drifted off to sleep after the long drive. The next morning, we secured our campsite and headed off to begin our 5 mile hike. We packed food and water and started up the trail. There were dark clouds in the horizon, and I commented that we might be in for rain. But my wife thought it'd be okay to continue. It never did rain and we had a wonderful hike. Overall, our first vacation to Washington state was a huge success and we look forward to returning some day.
imagined
Dear Diary,I've been thinking about the incident a lot. Probably too much. What, me? Overthinking? No way. But this time, I blame my subconscious brain. I had a dream about her last night. We met up and it was... nice. Polite. I mean, I didn't slap her, so already I'd say that's a pleasant dream. I'm kidding, but only sort of. It's actually the first time I dreamed of her in the last four months, since we stopped speaking. I've been rolling the incident around in my head over and over again, trying to think how it could have gone differently. I talked to mom after it happened and she was kind but firm, which sounds about right, eh? Mostly, she said I shouldn't have let the issue get so hot before dealing with it and that's why it exploded. Exploded, ha. That's an understatement. My bae since Kindergarden and now we never talk. It makes me so flipping sad sometimes, even though she was way out of line. Oh, I hear my mother's voice in my head again reminding me that I was out of line too. That's the terrible power of knowing everything about someone else - you have the knowledge and capacity to use that power to hurt them. I was wrong. She was wrong. And we're both so darn prideful. Should I reach out?
imagined
During a Christmas Party, my co-worker was having one of her worst days. She usually always harassed the other people in the kitchen but today she decided to harass me more than anyone else. I think why she disliked me the most was because I made it clear her behavior was unacceptable to me, while everyone else would just smile at her and than say terrible things about her when she left. She decided to try to bark orders at me, despite me being equal to her at work. She got so angry at me she would blow up at me before taking her break, and than while on her break she called the other co-workers in the kitchen to tell them to make sure I wasn't messing everything up for everyone else. She would threaten me, and berate me the entire day which my boss was entirely aware of. When I brought it up to my boss, just like I had done so dozens of times in the past, he just brushed it off and said to ignore her. I finally decided I had, had enough of my job and handed my boss my two weeks notice before leaving the building. He tried to guilt-trip me into staying by suggesting that a person with tough skin could handle it, and everywhere I go people like her would be there. However, I made it clear to him that in other work environments bosses enforce rules and if they're not followed the person is fired. My boss finally got the big picture of the problem with my co-worker and pulled her in to have a talk about her behavior, she came out quiet but proceed to be just as bad the next day. When you have a job where no one is ever fired, they never feel the need to change their behavior. When my two week notice was almost up, people kept telling me they would miss me and I was a good worker. That made me very happy, and made me feel like I had made a difference to people at my job. I think about that place sometimes but never do I miss it. While I hated to work there, I must admit it taught me a valuable lesson in dealing with others. My co-worker who harassed me left a week after I did, with my work asking me if I would come back shortly after. I of course, said no.
| retold
|
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Example: x = 3, equation weights = [4, 2]
Example solution: 14
Example explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14.
Problem: x = 9, equation weights = [6, 3, 2]
| Solution: 515 |
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.
One example is below.
Q: crystal
A: rock
Rationale: A crystal is a type of rock, so rock is a valid hypernym output.
Q: ram
A: | device |
Detailed Instructions: 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.
Problem:08:21 Hrs
Solution: | 08:21 AM |
You will be given a definition of a task first, then some input of the task.
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.
Set1: '{3, 7, 8, 11, 14, 15, 17, 20}', Set2: '{1, 3, 4, 11, 12, 15, 20}'. How many elements are there in the union of Set1 and Set2 ?
Output: | 11 |
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
See one example below:
Problem: Find the id and city of the student address with the highest average monthly rental.
Solution: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example.
Problem: Advisor 1121 has how many students?
Solution: | SELECT count(*) FROM Student WHERE Advisor = 1121 |
Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
Example input: I just want to say if this does not work out I promise to to personally show up to each of your homes and apologize for my life not working out the way that it should.
Example output: You know what, come tell us at the community pool.
Example explanation: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Q: Unmarried means I live somewhere else and don't see you very often.
A: | So, no biggie. You never really liked your father, anyway. |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Q: [215.273, 58.186, 140.588, 33.689, 12.512, -49.394, 81.075, 42.784, 42.097]
A: | [ 0.373 0.101 0.244 0.058 0.022 -0.086 0.141 0.074 0.073] |
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations.
--------
Question: ofrece el nombre de un restaurante " mexican " .
Answer: give me the name of a " mexican " restaurant .
Question: dame el número de teléfono de un restaurante con 7 estrellas.
Answer: give me the telephone number of a 7 star restaurant .
Question: ¿dónde está el restaurante " mexican " más cercano con una valoración de, al menos, 10 estrella(s)?
Answer: | where is the nearest " mexican " restaurant with at least a 10 star review ?
|
Given the task definition and input, reply with output. 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.
NAvRghsKjDy, RDCKcvRghsbavR
| NAghrsvKjDy, RDCKcghrsvbavR |
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
One example: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Solution is here: Advertising
Explanation: The given policy text states that it uses user information for 'advertising' explicitly
Now, solve this: An unnamed third party does receive your financial information for an additional (non-basic) service or feature.
Solution: | Additional service/feature |
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [662, 108, 738, 888, 92, 193, 283, 734, 888, 457, 83, 679, 541, 926, 37, 379, 839, 237]
A: | [193, 283, 457, 83, 541, 37, 379, 839] |
Teacher: This task is to find the number of 'For' loops present in the given cpp program.
Teacher: Now, understand the problem? If you are still confused, see the following example:
main()
{
float a[4];
float k;
float c;
int i;
for(i=0;i<4;i++)
{
scanf("%f",&a[i]);
}
scanf("%f",&c);
c=2*3.1415926*c/360;
k=(a[0]+a[1]+a[2]+a[3])/2;
double s,sq;
sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2);
if(sq<0)
printf("Invalid input");
else
{
s=sqrt(sq);
printf("%.4f",s);
}
}
Solution: 1
Reason: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example.
Now, solve this instance:
int fg(int k,int m)
{
int j,d=0;
if (m==1)
{
d=1;
}
for(j=k;j<=m;j++)
{
if (m%j==0)
d=d+fg(j,m/j);
}
return(d);
}
int main()
{
int n,i,a[40000],b[40000],s;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
}
for(i=1;i<=n;i++)
{
b[i]=fg(2,a[i]);
printf("%d\n",b[i]);
}
return 0;
}
Student: | 3 |
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Example: Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Example solution: -LRB-
Example explanation: "(" is the symbol for Left Parantheses (-LRB-).
Problem: Sentence: {{ http://nigeria.usembassy.gov/scams.html }}
Word: http://nigeria.usembassy.gov/scams.html
| Solution: ADD |
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
Example input: gocogccocco
Example output: gocog
Example explanation: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
Q: dpupdddddddud
A: | ddddddd |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
One example is below.
Q: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
A: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Rationale: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Q: [{'first': -27, 'second': -91}, {'first': -98, 'second': -45}, {'first': 51, 'second': 92}, {'first': 88, 'second': 100}, {'first': 93, 'second': -5}, {'first': -57, 'second': -94}, {'first': 70, 'second': -11}]
A: | [{'first': -98, 'second': -45}, {'first': -57, 'second': -94}, {'first': -27, 'second': -91}, {'first': 51, 'second': 92}, {'first': 70, 'second': -11}, {'first': 88, 'second': 100}, {'first': 93, 'second': -5}] |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [377, 37, 170, 83, 815, 783, 101]
A: | [37, 83, 101] |
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Q: Context: 'Well, if you give me 2 firewood and 2 food I will take just one water and you can have 2. I don't want you getting hurt!' 'That could work, but if possible I would like a little more food then, in case I do need to hike to the stream on the last day. I only have a couple of traps with me and those can be unreliable for food. Would it be ok if I take 2 water, 2 food, and 1 firewood?' 'No, if I give up the water I would want 2 of the food because I have extra people coming one of the nights.'
Utterance: 'Oh, I didn't know you had more people on the way. I understand. If I have to stay up in the canyon, I might need to build a fire to keep coyotes away at night. Would my taking 2 water, 1 food, and 2 firewood work for you?'
A: | Yes |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example: [1, 2, 3]
Example solution: [0.167, 0.333, 0.500]
Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Problem: [64.058, 0.777, -88.59, 129.505, 106.347, 33.142, -6.46]
| Solution: [ 0.268 0.003 -0.371 0.542 0.445 0.139 -0.027] |
Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
Input: নোয়াখালীর মাগী তরার পরোষরা সব আরব দেশ গুলোতে তাকে।
Output: | non-religious |
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.
Example: Set1: '{2, 3, 6, 9, 10, 14, 15, 20}', Set2: '{3, 5, 7, 9, 12, 15, 16}'. How many elements are there in the union of Set1 and Set2 ?
Example solution: 12
Example explanation: The union of Set1 and Set2 is {2, 3, 5, 6, 7, 9, 10, 12, 14, 15, 16, 20}. It has 12 elements. So, the answer is 12.
Problem: Set1: '{3, 4, 5, 7, 14, 16, 18, 19}', Set2: '{5, 6, 9, 11, 13, 14, 15, 16, 17}'. How many elements are there in the union of Set1 and Set2 ?
| Solution: 14 |
Q: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Fact: Regardless of size, baby bodies are vulnerable.
A: | What size babies are most vulnerable? |
Part 1. Definition
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.
Part 2. Example
Find the id and city of the student address with the highest average monthly rental.
Answer: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example.
Part 3. Exercise
Show the ids of high schoolers who have friends and are also liked by someone else.
Answer: | SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes |
Detailed Instructions: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Q: [-98.408, -61.123, -40.37, 7.833, 244.142, 4.274, 56.583, -31.778, 27.583]
A: | [-0.905 -0.562 -0.371 0.072 2.245 0.039 0.52 -0.292 0.254] |
You will be given a definition of a task first, then some input of the task.
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.
Set1: '{1, 5, 6, 12, 13, 14, 17}', Set2: '{3}'. How many elements are there in the union of Set1 and Set2 ?
Output: | 8 |
Detailed Instructions: In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
See one example below:
Problem: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Solution: [{'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.
Problem: [{'first': -95, 'second': -53}, {'first': -54, 'second': -94}, {'first': -19, 'second': -58}, {'first': -61, 'second': -74}]
Solution: | [{'first': -95, 'second': -53}, {'first': -61, 'second': -74}, {'first': -54, 'second': -94}, {'first': -19, 'second': -58}] |
Given the task definition and input, reply with output. 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: 'I am going to be camping for a couple of weeks, so I will need quite a bit. I also realized some additional water would be good, because I have some meals that need me to boil water. Maybe you can have 2 firewood in exchange for me having one of your waters? Then you would still have plenty of water, but also plenty of firewood 🙂' 'So sorry, I just realized you did not agree to the 3 waters in exchange of 3 foods. if you want a water, i will also will need one food. just to make things more fair on my end. If not i am looking at 2 waters, 0 foods, and 1 firewood. But i am willing to compromise for 3 waters, 1 firewood, and 0 foods. and you'll get 3 foods, 2 firewoods, and 0 waters, what do you think?' ' I appreciate your willingness to discuss this, so we both get a fair deal. I would really like if I get 3 food, 1 water, and 1 firewood. Then you would get 2 water and 2 firewood. You said that you really need water and food, so I think that would work best for both of us to get what we need most. What do you think? 🙂'
Utterance: 'Np, problem, water is high in demand on my end with the amount of kiddos I am taking. Water is my main concern, will you be okay with 3 Foods, 2 Firewoods and no water?'
| No |
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
[EX Q]: oxxoxoxxxxx
[EX A]: xxoxoxx
[EX Q]: rwrcrrrrcr
[EX A]: rcrrrrcr
[EX Q]: ggjjzzzggjz
[EX A]: | zzz
|
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Input: Consider Input: [42.772 30.932]
Output: 42.772
Input: Consider Input: [ 14.593 89.886 -93.152 41.625 -9.219]
Output: -93.152
Input: Consider Input: [ 36.552 67.578 79.864 -21.503 50.486 -89.144 -99.93 -26.474]
| Output: -99.93
|
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Let me give you an example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
The answer to this example can be: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Here is why: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
OK. solve this:
[{'first': 23, 'second': 56}, {'first': 84, 'second': -41}, {'first': -84, 'second': -91}, {'first': 3, 'second': -60}, {'first': -9, 'second': -20}, {'first': 84, 'second': 97}, {'first': 13, 'second': -57}, {'first': -10, 'second': 56}]
Answer: | [{'first': -84, 'second': -91}, {'first': -10, 'second': 56}, {'first': -9, 'second': -20}, {'first': 3, 'second': -60}, {'first': 13, 'second': -57}, {'first': 23, 'second': 56}, {'first': 84, 'second': -41}, {'first': 84, 'second': 97}] |
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...'.
What's wrong with this thing? This radio, I just bought this thing. What's wrong? | These things take so many batteries. |
Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
Q: My dream is you on stage holding a suitcase with 49 other women as Howie Mandel's career gets one more shot.
A: | I was thinking more like you'd take me out and I'd say yes. |
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.
Example input: I_TURN_LEFT I_JUMP
Example output: jump left
Example explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Q: I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_JUMP
A: | jump opposite right after run left thrice |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Example input: difficult
Example output: No
Example explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Q: win
A: | din |
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.
Ex Input:
Sentence: The Alaskan tundra , for instance , has switched from being a net sink of carbon dioxide -- absorbing and storing more carbon from the atmosphere than it releases -- to " being a net source of CO2 ( releasing more carbon than is stored {{ ) }} because warmer winters have allowed dead plant matter previously stored in the soil to decompose and release CO2 . "
Word: )
Ex Output:
-RRB-
Ex Input:
Sentence: Another person in the {{ store }} stood there with an item and repeatedly tried to get a sales person s attention .
Word: store
Ex Output:
NN
Ex Input:
Sentence: While there was n't too much available for their age ( ball pit , bouncy area and a little padded pyramid to climb on ) , we went right when they opened at 10 am on a winter weekday and ended up being the only ones there , so {{ we }} were given a little more liberty than we would have if others had been there .
Word: we
Ex Output:
| PRP
|
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.
Set1: '{4, 5, 7, 12, 13, 17, 19}', Set2: '{1, 6, 8, 12, 13, 18, 19}'. How many elements are there in the union of Set1 and Set2 ?
11
Set1: '{1, 4, 7, 12, 13, 20}', Set2: '{8, 6}'. How many elements are there in the union of Set1 and Set2 ?
8
Set1: '{1, 3, 5, 6, 7, 13, 16}', Set2: '{18, 7}'. How many elements are there in the union of Set1 and Set2 ?
| 8
|
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 input: bYubMFxyTqR, AcDbMFxSnI
Example output: bYubfmxyTqR, AcDbfmxSnI
Example explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Q: dSvrzmWQCjePPtfHFQkVwCPFJqxqJwAioZAwSPRA, HJmPKDRwvkVwCPFJqxqJwAioZAwSYbnEgxqGJCgvbdLPR
A: | dSvrzmWQCjePPtfHFQaacfijjkopqqsvwwwxzPRA, HJmPKDRwvaacfijjkopqqsvwwwxzYbnEgxqGJCgvbdLPR |
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Q: [-75.42 -25.776]
A: | -75.42 |
Detailed Instructions: 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
Problem:The site collects your generic personal information for personalization or customization. Collection happens by an unnamed service or third party, and your data is identifiable. You can opt in for data collection.
Solution: | Personalization/Customization |
Detailed Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Q: Sentence: 2005 is bound to bring at {{ least }} one major success in the love department , and your career will be brimming with new enthusiasm and innovation .
Word: least
A: | RBS |
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.
One example is below.
Q: crystal
A: rock
Rationale: A crystal is a type of rock, so rock is a valid hypernym output.
Q: amalgamate
A: | blend |
In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Let me give you an example: Angola
The answer to this example can be: Republic
Here is why: Republic is the government type of the country called Angola.
OK. solve this:
New Zealand
Answer: | Constitutional Monarchy |
Detailed Instructions: Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation.
See one example below:
Problem: hello
Solution: Human
Explanation: This is an example of correct classification because the sender really was a human. To start with a hello is a normal thing for a human to do. Frequently bots don't start with hello, or if they do, they follow it with non-sequiturs.
Problem: SENDER A: that is my dream but not going to wait for retirement to do that
Solution: | Bot |
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.
Example input: I_TURN_LEFT I_JUMP
Example output: jump left
Example explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Q: I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_WALK
A: | walk opposite right after run opposite right |
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.
Q: orbital
A: | circular |
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.
Q: DPfgFMnXiGHheLjHvfulmQlcjcpb, gAUGHheLjHvfulmQlcTWwglhPffNFGZC
A: | DPfgFMnXicefghhhjlllmquvjcpb, gAUcefghhhjlllmquvTWwglhPffNFGZC |
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.
Q: yNLQztjOORHVAdHr, VUztjOORHPFf
A: | yNLQhjoortzVAdHr, VUhjoortzPFf |
Detailed Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Q: Sentence: --- {{ $ }} 10 million is provided for Centennial Challenges .
Word: $
A: | $ |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Solution: adverse drug event
Why? Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
New input: Mitral valve prolapse and thromboembolic disease in pregnancy: a case report.
Solution: | non-adverse drug event |
You will be given a definition of a task first, then some input of the task.
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.
ভাই ভিডিওটা তো খারাপ লাগার প্রশ্নই আসে না রানুর মত নিমুখারাম দুনিয়াতে আর একটাও হয় না থাকতো কিসের মত জানো পাক্কা খাটাস আর বলে কিনা সে পরিষ্কার ছিল আরে কৃতজ্ঞতাবোধ শিখতে হলে বাংলাদেশ আয় আর গলি বয় রানা থেকে কিছু শিখ
Output: | non-religious |
Detailed Instructions: Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_TURN_LEFT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_LOOK
A: | walk left and look opposite right |
TASK 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.
PROBLEM: Query: SELECT count(*) WHERE {
M0 a ns:film.actor .
M0 ns:film.actor.film/ns:film.performance.film M2 .
M0 ns:film.editor.film M2 .
M0 ns:film.producer.films_executive_produced M2
} Question: Was M1 M0 's prequel 's cinematographer , editor , art director , and executive producer
SOLUTION: 0
PROBLEM: Query: SELECT count(*) WHERE {
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 .
?x1 a ns:film.editor .
M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0
} Question: Was M2 written by a Spanish actor of M1
SOLUTION: 0
PROBLEM: Query: SELECT count(*) WHERE {
?x0 ns:film.film.edited_by M0 .
?x0 ns:film.film.sequel ?x1 .
?x1 a ns:film.film
} Question: Was a film 's prequel edited by M0
SOLUTION: | 1
|
Teacher: Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Teacher: Now, understand the problem? If you are still confused, see the following example:
crystal
Solution: rock
Reason: A crystal is a type of rock, so rock is a valid hypernym output.
Now, solve this instance: swallow
Student: | consume |
Subsets and Splits