prompt
stringlengths 114
7.32k
| response
stringlengths 1
469
|
---|---|
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Q:
int num;
int dg(int m,int limit);
int main()
{
int n;
cin>>n;
for (int i=1;i<=n;i++)
{
int m; cin>>m;
num=0;
dg(m,2);
cout<<num<<endl;
}
return 0;
}
int dg(int m,int limit)
{
for (int i=limit;i<=m/2;i++)
if (m%i==0) dg(m/i,i);
if (m>=limit) num++;
return 0;
}
A: | 2 |
Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Example input: Fact: pesticides can harm animals.
Example output: What can harm animals?
Example explanation: It's a good question because it is formed by simply replacing the word "pesticides" with "what".
Q: Fact: Water evaporates more quickly in the summer.
A: | When would water evaporate the most quickly? |
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Example: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Example solution: Advertising
Example explanation: The given policy text states that it uses user information for 'advertising' explicitly
Problem: The site collects your unspecified information for personalization or customization. Collection happens in an unspecified way. You can opt in for data collection for the collection of your information.
| Solution: Personalization/Customization |
Given the task definition and input, reply with output. 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.
03:25 Hrs
| 03:25 AM |
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: Find the id and city of the student address with the highest average monthly rental.
Example 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
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.
Problem: Show different nominees and the number of musicals they have been nominated.
| Solution: SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Input: Consider Input: Surely given those premises, community justice (street law) is a better way of controlling crime?
Output: Valid
Input: Consider Input: All you have to do is make it illegal to get an appeal and be done with it.
Output: Valid
Input: Consider Input: Since the majority of violent crimes are committed by career criminals, the death penalty surely puts a damper on their career.
| Output: Valid
|
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Example input: [47, 444, 859, 530, 197, 409]
Example output: [47, 859, 197, 409]
Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Q: [529, 408, 409, 743, 685, 746, 877, 131, 955, 884, 383, 105, 439, 274, 182, 174, 569]
A: | [409, 743, 877, 131, 383, 439, 569] |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Example Input: after
Example Output: laughter
Example Input: sudden
Example Output: budden
Example Input: same
Example Output: | fame
|
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
Norway | .no |
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.
Input: dpYrisYMhjWEoLsGiMQhOJ, lmOisYMhjWEoLNuZlK
Output: | dpYrehijlmoswysGiMQhOJ, lmOehijlmoswyNuZlK |
Instructions: 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.
Input: Bosnia and Herzegovina
Output: | Federal Republic |
Given the task definition and input, reply with output. 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.
What are the countries for appelations with at most 3 wines?
| SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 |
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.
Input: Query: SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x0 ns:influence.influence_node.influenced M0 .
?x0 ns:people.person.nationality ns:m.0f8l9c
} Question: Was M3 written by , produced by , and directed by a female American star of M1
Output: | 0 |
Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Input: Return the names of products that have had complaints filed by the customer who has filed the fewest complaints.
Output: | SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1 |
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.
x = 5, equation weights = [7, 8, 4, 0, 9] | 5484 |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example input: [1, 2, 3]
Example output: [0.167, 0.333, 0.500]
Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Q: [198.482, 31.055, -77.298, 170.515, 166.638, 97.396, 164.817]
A: | [ 0.264 0.041 -0.103 0.227 0.222 0.13 0.219] |
Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Input: meant
Output: | sent |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Example input: Basinger was born in Athens, Georgia, on December 8, 1953
Example output: December 8, 1953
Example explanation: The output is correct as it is a valid text span, is of minimal length and is the correct date of birth.
Q: Selma Blair Beitner was born on June 23, 1972, in Southfield, Michigan, a suburb of Detroit
A: | June 23, 1972 |
Q: 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.
¿cuáles son los restaurantes con reseñas de " mark "?
A: | what are the restaurants reviewed by " mark " ? |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Ex Input:
I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_WALK
Ex Output:
walk opposite right after run left twice
Ex Input:
I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_LEFT I_TURN_LEFT I_LOOK
Ex Output:
jump around right twice and look opposite left
Ex Input:
I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_WALK
Ex Output:
| run opposite right thrice and walk opposite right twice
|
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Example input: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Example output: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Q: [{'first': -92, 'second': 51}, {'first': -8, 'second': 80}, {'first': -65, 'second': 21}, {'first': -62, 'second': 5}]
A: | [{'first': -92, 'second': 51}, {'first': -65, 'second': 21}, {'first': -62, 'second': 5}, {'first': -8, 'second': 80}] |
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: Have you seen me before? Have I been on this plane for awhile?
A: | My goodness. You've been here since the beginning. Do you not remember? |
Given the task definition and input, reply with output. Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone.
I still have the same new crappy neighbors. I have noticed they do not hang their flag every day. The church signs are gone since the neighborhood put up the, 'all are welcome in our USA.' signs. And not many on our quiet street stop and talk to them. The kid still practices his asian weapons in the driveway. He's mid twenties, dressed in all black and practicing weapons in his driveway with friends every night is intimidating. This is a generally liberal university town with huge marches since the tRump misAdministration began. Marches against jailing migrant children, removing rights from LGBTIA community, slashing the Affordable Care Act, states virtually illegalizing abortion, climate/environmental policy have all happeneds here. I guess they figured they don't fit in. Figured out many of their religious values of intolerance and judgment are rare in this town. I feel supported by neighbors. They still cost me $600 a month. I can't rent my spare room. No one wants to live by weapons practice. Or can sleep through their A/C running 24/7 when 55 degrees out. It's the same situation.
| retold |
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: [803, 750, 823, 491, 898, 121, 973, 258, 574, 53, 983, 417, 976]
A: | [823, 491, 53, 983] |
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.
One example: Context: 'That sounds pretty reasonable as I am in need of firewood the most. Would it be most reasonable to each take what we need most and split the water down the middle?' 'Yes, it would.' 'I think that sounds fair. The problem is that there are 3 waters and one of us would get two and the other one. How should we sort that?'
Utterance: 'You can take the two water. I am not that thirsty most days.'
Solution is here: No
Explanation: In this utterance, the participant does not use self-need since they do not talk about any need for themselves.
Now, solve this: Context: 'Hi there! I am excited to share these additional camping supplies with you!' 'Yes, same here! I'm glad that we all have our own basic necessities, but extra is always wonderful. 🙂 What are you most interested in?' 'I am most interested in water! My husband and I are traveling with our newborn and we need as much water as possible!🙂'
Utterance: 'Ah, I see! I am in the same boat. We are camping somewhere where there is no source of water and it's very hot. Hm, let's see how to go about this'
Solution: | Yes |
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.
Example: 19:00 Hrs
Example solution: 07:00 PM
Example explanation: For a 24-Hours format time larger than 12:00, we should subtract 12 hours from the given time, then add 'PM'. So, the output is correct.
Problem: 12:11 Hrs
| Solution: 12:11 PM |
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.
[EX Q]: বাংলায় ভোদা বললে দোষ আর ইংলিশ এ গুদ শুনতে খুব ভালো লাগে একেবারে মন ভইরা সোনা খারায়া যায় না?
[EX A]: non-religious
[EX Q]: সাব্বাস পাকিস্তান মালাউনদের দংস করে দিতে হবে
[EX A]: religious
[EX Q]: জারজ মালাউনদের বিরুদ্ধে ঐক্যবদ্ধ জিহাদ এখন সময়ের দাবী।রাব্বুল আলামীন ভাইদের শাহাদাত কবুল করুন।
[EX A]: | religious
|
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: Wow, a fan. You have TV in this tree house?
A: | No, the people a couple doors down do. I put a cup to the window and listened to it. |
Q: 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...'.
Whoa, there are a lot of food wrappers in this room.
A: | Ouch. It looks like a dumping ground for Hostess. |
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_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP
Example Output: jump opposite right thrice after look opposite right twice
Example Input: I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_LEFT I_JUMP
Example Output: jump left after walk right twice
Example Input: I_TURN_LEFT I_LOOK I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN
Example Output: | look left and run around right twice
|
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Example: [47, 444, 859, 530, 197, 409]
Example solution: [47, 859, 197, 409]
Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Problem: [97, 97, 196, 214, 271, 907, 757, 530, 28, 463, 290, 711, 563, 727, 844, 491, 3, 71, 157]
| Solution: [97, 97, 271, 907, 757, 463, 563, 727, 491, 3, 71, 157] |
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]: dream
[A]: event
[Q]: job
[A]: work
[Q]: pistol
[A]: | firearm
|
Definition: 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.
Input: muéstremeuna lista de restaurantes con menos de 3 comentarios.
Output: | show me a list of restaurants with less than 3 reviews . |
Given the task definition and input, reply with output. Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation.
SENDER A: i am not sure what that is . i am not a very experienced person .
| Bot |
In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
One example is below.
Q: 14/25/1405
A: 0
Rationale: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12.
Q: 17/31/1838
A: | 0 |
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.
[EX Q]: me apetece comida " italian " .
[EX A]: i 'm in the mood for " italian " food .
[EX Q]: dígame cuál es la valoración del "wendy 's".
[EX A]: tell me the rating of " wendy 's " .
[EX Q]: encuentra la dirección para " on the borders mexican grill and cantina " .
[EX A]: | find the address for " on the borders mexican grill and cantina " .
|
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Example: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Example solution: Advertising
Example explanation: The given policy text states that it uses user information for 'advertising' explicitly
Problem: You can make no specified choices about the use of generic personal information by the site, which collects it for a purpose outside of our label scheme.
| Solution: Other |
Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone.
[Q]: This vacation was quite an experience! It was the first time that my husband and I had taken our little ones on a long trip. We only went about four hours from home, but it felt like we were a world away! The car ride went more smoothly than I thought it would with a baby in the car. Granted, we did leave in the early hours of the morning, so the kids slept for a little while. We stayed in a community of rental homes in a very nice neighborhood. The house was beautiful and it met all of our needs for the trip. There was also a huge lagoon style pool on the property that we made use of during our stay. The kids had a blast swimming in it. I think the most exciting part of our trip was seeing our little girl (3) at the beach for the first time. She was just in awe of everything. She kept running down to the water and running back across the sand, and her excitement was just infectious. It means a lot to me that we are able to take our kids to do things like this and have fun experiences, because I know a lot of people are not so lucky. We are not rich by any means, but as long as we can give our kids love and a taste of life, I am happy. It filled my heart to see her so enjoying herself. On the whole, it was a great trip full of fun experiences. It was hard to deal with the toddlers, but all of the frustrations were worth it.
[A]: retold
[Q]: The past two months have seemed like a blur, but in the past two weeks, everything seemed to go in slow motion. Leading up to our graduation, every day was jam packed with things to do. We were cramming for exams, touching up final papers, analyzing data for research projects. And that was just for school. We also had to find time to apply for jobs, so many jobs. And of course we couldn’t neglect each other. We went out every weekend. We were finally all 21 and didn’t have to worry about fake ids, so we really took advantage of the full range of bar selections across the city. We felt like we were finally growing up and finally ready to enter the real world. Graduation day two weeks ago was the culmination of all of that. We partied like we never had before, and we finally didn’t have to stress about waking on time the next day battling a hangover to get to class. After that, though, the dorms closed. We all had to leave. I went back to my family’s house for a while, and the whole world seemed to stop. As adult as I felt the past few months, I was whisked back to childhood by my parents, controlling my every move once again. I still didn’t have a job, but felt like I was running out of places to apply. My friends from high school mostly weren’t around, either, so days passed so slowly. I have to admit, I enjoyed it at first, finally free of the deadlines, but without the friends and life I’d built in college, all the fun things I wished I could do with my free time just weren’t around to enjoy anymore. This past week has been so hard. I hardly bothered to leave my room much less the house. But you know what, just when I felt like I needed to resign to this being my life, days of reminiscing for college, I got a call! Last night, I got an interview for a job at my top choice of firms. I’m so excited, and it’s really brought my life back into focus. Shopping tomorrow, interview prepping on Wednesday, and if all goes well, my first real job next month!
[A]: imagined
[Q]: 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?
[A]: | imagined
|
You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right
Example input: [1,2,2,3]
Example output: 1
Example explanation: The array is monotonic as 1 < 2 <= 2 < 3
Q: [143, 135, 127, 119, 111, 103, 95, 87, 79, 71, 63, 55, 47, 39]
A: | 1 |
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Example 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 cookies or tracking elements for service operations or security. Collection happens in an unspecified way. You can configure your privacy with browser settings.
A: | Service Operation and Security |
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 it's important for both of us to get that wood ! ' 'In order to get all food, can you give me additional firewood?' 'How about I do: 2 firewood, 2 food and 1 water?'
Utterance: 'Well, what would it take for you to give up extra wood? '
A: No
****
Q: Context: 'I agree, can't wait to unplug. As far as supplies go, I think its going to be hot and sunny where I'm going, wouldn't mind a bunch of extra water.' 'Water is extremely important to me too. I can give you 2 waters if you give me all 3 firewoods. ' 'Hmm, ok, thats pretty fair. I do have a larger group going as well, so would it be okay if I got 2 extra food then?'
Utterance: 'I think that will work. '
A: No
****
Q: Context: 'Hello 🙂 What do you need most??' 'I would say between firewood and food, eating and comfort is important to me'
Utterance: 'I can understand that. I know I really need the food the most. I'm already worried I'm going to run out. I also have blood sugar problems, so I cannot run out ☹️'
A: | Yes
****
|
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: [ 52.354 -40.5 ]
A: | 52.354 |
Teacher:Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Teacher: Now, understand the problem? Solve this instance: seam
Student: | join |
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Example: [47, 444, 859, 530, 197, 409]
Example solution: [47, 859, 197, 409]
Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Problem: [191, 248, 11]
| Solution: [191, 11] |
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.
post | record |
Detailed Instructions: In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Problem:Set1: '{1, 2, 5, 8, 12, 13, 14, 17, 19}', Set2: '{1, 5, 6, 7, 9, 15, 19, 20}'. How many elements are there in the union of Set1 and Set2 ?
Solution: | 14 |
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.
muéstrame cualquier restaurante " mexican ". | show me any " mexican " restaurant . |
Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Input: Fact: batteries are used for adding.
Output: | What are used for adding? |
Given the task definition and input, reply with output. This task is to find the number of 'For' loops present in the given cpp program.
int f(int m,int min);
int main()
{
int n,m,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&m);
printf("%d\n",f(m,2));
}
return 0;
}
int f(int m,int min)
{
int count=1,i;
if(m==1)
return 1;
else if(m == 2)
return 1;
else
{
for(i=min;i<=sqrt(m);i++)
{
if(m%i==0)
{
count += f(m/i,i);
}
}
return count;
}
}
| 2 |
Detailed Instructions: In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
Q: eeoaoaaeeeaoeo
A: | aeeea |
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: [335, 541, 83, 178, 500, 918, 815, 339, 223, 161, 801, 811, 457, 116, 463, 401]
A: | [541, 83, 223, 811, 457, 463, 401] |
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Problem:
int cal(int M, int N)
{
int i;
int num=0;
if(M==1) return 0;
if(N>=M) return ( 1+cal(M,M-1));
for(i=2;i<M;i++)
{
if(M%i==0&&i<=N) num=num+cal(M/i,i);
}
return num;
}
int main()
{
int n,M;
cin>>n;
while(n--)
{
cin>>M;
cout<<cal(M,M)<<endl;
}
return 0;
}
Solution: | 1 |
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 points system acts as a guide to sort out the {{ best }} candidates .
Word: best
Ex Output:
JJS
Ex Input:
Sentence: {{ ( }} They even got me a couch pretty quickly . )
Word: (
Ex Output:
-LRB-
Ex Input:
Sentence: This is to inform that a representative of Enron Corp would like to address the Commission on the issue of utility rate stabilization plans at the Commission {{ 's }} hearings scheduled for December 27th and 28th .
Word: 's
Ex Output:
| POS
|
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations.
Example input: ¿hay algún restaurante " italian " cerca con opiniones de 3 estrellas?
Example output: are there any " italian " restaurants nearby with 3 star reviews ?
Example explanation: The translation correctly preserves " italian " entity and is accurate
Q: muéstreme restaurantes "greek".
A: | show me " greek " restaurants . |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Example: difficult
Example solution: No
Example explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Problem: gather
| Solution: rather |
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.
Ex Input:
Six months ago, my wife began to not feel well. She complained of extreme fatigue, nausea, and felt that she was getting bloated. I suggested she go to the doctor, which she was not a fan of, and this went on for three more days. Finally, one snowy Friday evening, she was getting a ride home from a co-worker and called me. She said she was feeling much worse, including dizziness and abdominal pain. I asked her co-worker (who was also a friend of ours) to drive her to the emergency room and I set out to meet her there. It was snowing so hard that I missed the turn to the hospital, so I it took me a while to get there but I got there right before they called her back. She looked terrible, and I instantly regretted not being more adamant with my suggestion that she see a doctor earlier. They did quite a few tests, and we talked to several different doctors and nurses. Eventually they knew that she was having serious kidney problems, but there was more going on as well. After about seven hours, around midnight, they admitted her and we moved up to a room, where she was the only patient. Another hour after that and a different doctor came to tell us that she had cirrhosis, which is eventually fatal without a transplant. She's not much of a drinker, and they said that it's due to what's called a fatty liver. She took the news in stride, asking what she needed to do moving forward, and I was very proud of her strength. I drove home around 3 that morning to try to get some sleep, moving at a crawl on icy roads, knowing that our lives were going to be much different now. It turns out that both of her grandfathers died of the same thing. She is determined not to go that way, and is now in Denver, staying with her parents, about to finally get on the transplant list. I am still in Albuquerque, holding down the fort - they don't do transplants here (for real) so this is the only way we can try get her healthy again.
Ex Output:
recalled
Ex Input:
I almost killed someone last month. I was on the phone, helping a patient, and also filling prescriptions as fast as I could. The pharmacist in charge (PIC) was picking her nose while telling me to go faster, faster, faster. I felt so angry that she wouldn't even pick up the phone and put someone on hold while us techs were working at such dangerous paces. And then it happened. A customer asked me to count their pills again so they knew they were receiving the right amount. I understood why, we were visibly overworked and understaffed, but was also very irritated at having yet another task added to my plate. I grabbed the vial, dumped it out, and then my blood ran cold. The PIC stopped digging in her nose and looked down at the same time I did--she lead by micromanaging us right down to how many times a day we urinated, and she started whisper yelling at me. There was a very dangerous drug mixed in with the blood pressure pills. How it happened, who initially put the wrong drug in the wrong bottle, who verified it at the final check, it didn't matter. This was not a failure of the multi-step process or the team in her eyes. No, the fault was mine and mine alone. My bladder was strained, my feet hurt, and I could not safely multitask another day. I went home and thought about it, obsessed over it, dreamed about it. I showed up for work the next day and worried over every patient. I worried that the other techs were not able to work safely either, that the other pharmacists were so worried about whether patients were coming in for vaccinations to meet a goal that I was actually going to kill someone next time. I worried that someone was sitting down to take the wrong medicine right that moment and there was nothing I could do. The next day was my day off and I felt dread, crippling dread. And then I woke up at 3 in the morning and realized I didn't have to go in the next day. I didn't have to go back ever again. So without warning, without thought I quit. Just like that. My family is broke but I didn't kill someone that day.
Ex Output:
recalled
Ex Input:
Though I am afraid of water, I will never forget the amazing cruise trip I took five months ago. My best friend, John, suggested our friend's group should take a unique vacation earlier this year, and he heard good things about these new rock cruises where you travel with the band. I am pretty much open to any type of music anyway, but rock is easily near the top of my list of genres. I really started getting excited when I found out the band involved was one of my favorite rock bands from the 80's. Aside from the water part, I was a fairly easy sell. Within minutes of getting on the ship we all realized how unbelievable this experience would be. In addition to nightly performances from the band, the whole band mingled with everyone just like regular people throughout the entire trip. I remember walking into the bathroom and having to wait for the lead singer to finish before I could use the toilet. I felt funny about shaking his hand at the time, and was left speechless as he walked off. Thankfully I had a chance to introduce myself later on in the trip! All of my friends had a blast on the cruise too, and I barely even noticed the fact that we were so far out on the water. The last night ended up being a massive blowout concert that seemed to go on for hours. The atmosphere was so perfect that I'm not sure it's possible to ever forget how great the experience was. To think I might have skipped out on this trip due to my fear of water is almost crazy now. I consider this to be arguably my best vacation of my entire life, and I might just have to try another one when this band comes around again!
Ex Output:
| imagined
|
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.
One example is below.
Q: Context: 'That sounds pretty reasonable as I am in need of firewood the most. Would it be most reasonable to each take what we need most and split the water down the middle?' 'Yes, it would.' 'I think that sounds fair. The problem is that there are 3 waters and one of us would get two and the other one. How should we sort that?'
Utterance: 'You can take the two water. I am not that thirsty most days.'
A: No
Rationale: In this utterance, the participant does not use self-need since they do not talk about any need for themselves.
Q: Context: 'Thanks. Yea they do love their snacks LOL. Yea I just need 1 extra food. Snice I wasn't planning on her friend coming. ' 'Okay, then the deal you mentioned earlier sounds good to me. You're okay with me getting 3 water 2 food and you getting 3 firewood and 1 food?' '🙂 Yep sounds like it will help us out the best snice you need water and food for your hike and I need firewood and just 1 food here at the camp.'
Utterance: 'Okay, then that sounds like a good deal for us both! It was a pleasure doing business with you, thanks!🙂'
A: | No |
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.
Input: lbJUpAaCiCkaO, VkjYhpAaCifiNJ
Output: | lbJUaacipCkaO, VkjYhaacipfiNJ |
Detailed Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Q: Turns out they're a lot more reliable than wherever the hell you're pulling your information out of.
A: | Invalid |
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.
Q: SENDER A: I am very happy today.
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.
Q: dame todos los lugares " italian ".
A: | give me all the " italian " places . |
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: Maldives
Student: | Republic |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Q: First, it is more expensive than sentencing someone to life in prison.
A: | Valid |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example input: [1, 2, 3]
Example output: [0.167, 0.333, 0.500]
Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Q: [220.143, 127.934, -99.382, 2.603, -99.77, -23.651]
A: | [ 1.722 1. -0.777 0.02 -0.78 -0.185] |
Detailed Instructions: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Q: x = 4, equation weights = [2, 9, 6]
A: | 74 |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
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 algún restaurante " italian " cerca con opiniones de 3 estrellas?
Solution: are there any " italian " restaurants nearby with 3 star reviews ?
Why? The translation correctly preserves " italian " entity and is accurate
New input: ¿ya tiene una reseña el " lone star steakhouse " en " dallas nc "?
Solution: | does the " lone star steakhouse " in " dallas nc " have a review yet ? |
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: [553, 401, 223, 679, 822, 364, 919, 739, 539, 163, 885, 643, 986, 599, 593, 77, 163]
A: | [401, 223, 919, 739, 163, 643, 599, 593, 163] |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Example solution: adverse drug event
Example explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Problem: Three days after intravitreal injection of bevacizumab, acute ocular ischemic syndrome occurred.
| Solution: adverse drug event |
Q: Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
You mortals are in big, big trouble.
A: | I have a question. I didn't eat the apple. I was just hanging out. Why should I be punished? |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Q: Sagal was born on January 19, 1954, in Los Angeles, California, to a show business family with five children
A: | January 19, 1954 |
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Example input: x = 3, equation weights = [4, 2]
Example output: 14
Example explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14.
Q: x = 4, equation weights = [9, 7, 8]
A: | 180 |
Definition: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Input: We conclude that MB is an effective treatment for ifosfamide-induced encephalopathy.
Output: | adverse drug event |
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
One example is below.
Q: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
A: religious
Rationale: Here it expresses hate against the religion, hence tagged as religious.
Q: বুঝতে হবে ভারতে হিন্দু মারা গেছে আর মায়ানমারে মুসলিম সুতরাং যিনি যে ধর্মের সে ঐ জাতির জন্যই শোকাহত হবে
A: | non-religious |
Detailed Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Problem:Criminals need to be punished for what they have done.
Solution: | Valid |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Example input: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Example output: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Q: [{'first': -35, 'second': -62}, {'first': -77, 'second': -38}, {'first': -27, 'second': 57}, {'first': 59, 'second': -25}, {'first': -78, 'second': -14}, {'first': -5, 'second': 8}]
A: | [{'first': -78, 'second': -14}, {'first': -77, 'second': -38}, {'first': -35, 'second': -62}, {'first': -27, 'second': 57}, {'first': -5, 'second': 8}, {'first': 59, 'second': -25}] |
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: [242.033, -8.567, 15.093, -56.906, 152.287]
A: | [ 0.704 -0.025 0.044 -0.165 0.443] |
Detailed Instructions: The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations.
Problem:busca un restaurante " mexican " .
Solution: | search for a " mexican " restaurant . |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
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 algún restaurante " italian " cerca con opiniones de 3 estrellas?
Solution: are there any " italian " restaurants nearby with 3 star reviews ?
Why? The translation correctly preserves " italian " entity and is accurate
New input: localizar todos los restaurantes " italian ".
Solution: | locate all " italian " restaurants . |
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: Who the fuck are you? You've never spoken.
A: | This is Steve. He's Steve Dons. |
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: We report an additional case of isotretinoin teratogenicity in which the patient had agenesis of the cerebellar vermis, multiple leptomeningeal neuroglial heterotopias, hydrocephalus, and abnormalities of the corticospinal tracts.
Solution: | adverse drug event |
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: Compacted dead plants are used for generating heat by burning.
A: | What is used for generating heat by burning? |
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?"
Let me give you an example: Fact: pesticides can harm animals.
The answer to this example can be: What can harm animals?
Here is why: It's a good question because it is formed by simply replacing the word "pesticides" with "what".
OK. solve this:
Fact: decomposition increases the amount of cations in the soil.
Answer: | what gets increased in the soil from decomposition? |
instruction:
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
question:
'English : The statement issued by the General Staff said that “they have reached the conclusion that the helicopter was probably shot down by an unidentified air defense weapon that could be a ground launched cruise missile”.','Kurdish : Dema pevçûn berdewam dikir, gelek helîkopter sewqî herêma lê şer heye hatine kirin. Lêbelê êrişkaran li dijî helîkoptera kobrayê ji erdê ve êrişek pêk anîne. Li gorî nirxandinên me dibe ku helîkopter bi fuzeyê hatibe lêxistin û û bi wî awayî ketibe.''
answer:
Yes
question:
'English : Diyarbakır Chief Public Prosecution has announced in its statement that the five investigations it had launched into the incident were still ongoing.','Kurdish : ‘Xebatên DNAyê ji bo tespîtkirina 13 welatiyên me ku li Saziya Tipa Adlî ya Stenbolê dewam dikir, bi dawî bû.’'
answer:
Yes
question:
'English : Following the attack causing many casualties, hospitals are making calls for blood donation.','Kurdish : Li gorî agahiyên Ajansa Nûçeyan a Hawarê teqîn îro saet 09:25an de li nêzî Navenda Asayîşa Xerbiyê ku li ser riya Amûdê yê de hatiye kirin. Li gorî agahiyan di nav kamyona bombebarkirî de gelek pez jî hebûne û bi wî awayî êrişê pêk anîne.'
answer:
| No
|
You will be given a definition of a task first, then some input of the task.
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: 'Hello, how is your camping trip going?' 'Hi there. Hoping it'll be good, and yours as well. I was hoping we could negotiate so I could get this extra water - I was planning on this being a hiking trip and it's pretty warm and humid out, so I imagine I'll need it.'
Utterance: 'I don't have any problems letting you have all 3 waters. Would you be willing to give me all 3 firewood? I need extra to keep me warm as I get cold easily.'
Output: | Yes |
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: [-35.347 -52.516 -31.714 50.14 -81.939 -21.909 77.272 -35.66 -56.845
50.116]
A: | -81.939 |
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.
One example is below.
Q: Find the id and city of the student address with the highest average monthly rental.
A: 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
Rationale: 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: For each dorm, how many amenities does it have?
A: | SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Example solution: adverse drug event
Example explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Problem: In case no. 2, the pathogenic mechanism seemed to be persistent light reaction preceded by systemic photoallergy, as he had taken mequitazine for 6 months, and there were strong positive photopatch test results with immediate erythema reaction, cross-reaction to promethazine, decreased MED to both UVA and UVB, and persistence of the photosensitivity over a 3-year follow-up period after discontinuation of the mequitazine.
| Solution: adverse drug event |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
One example: [1, 2, 3]
Solution is here: [0.167, 0.333, 0.500]
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.
Now, solve this: [14.73, 235.384, 4.528, -36.623]
Solution: | [ 0.068 1.08 0.021 -0.168] |
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.
Input: List the section_name in reversed lexicographical order.
Output: | SELECT section_name FROM Sections ORDER BY section_name DESC |
Detailed Instructions: The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Q: Context: 'Oh ok, that will be great. How about the water? Is 2 for me and 1 for you ok?' 'How about 2 for me 🙂' 'I have 3 kids with me who are always thirsty but we can negotiate for it'
Utterance: 'Ok. Thats fine'
A: | No |
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: Thomas, do you like being you? You're sort of the weird one because everyone else is big and beefy.
A: | I used to think all the time that it was bad that I was different. Now I think that maybe it's cool that I'm different. I'm my own person. |
Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
One example is below.
Q: I just want to say if this does not work out I promise to to personally show up to each of your homes and apologize for my life not working out the way that it should.
A: You know what, come tell us at the community pool.
Rationale: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Q: I cannot find any of the relishes.
A: | Oh, the place is a mess. No wonder we are going out of business. |
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: [-36.947 -72.995 83.023 -25.831 81.757]
A: | 83.023 |
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.
One example is below.
Q: Angola
A: Republic
Rationale: Republic is the government type of the country called Angola.
Q: Latvia
A: | Republic |
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: [ 0.247 -34.264 38.83 -15.515]
A: | 38.83 |
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Input: Consider Input: Set1: '{1, 4, 11, 13, 16, 17, 20}', Set2: '{13, 7}'. How many elements are there in the union of Set1 and Set2 ?
Output: 8
Input: Consider Input: Set1: '{19, 6}', Set2: '{18, 15}'. How many elements are there in the union of Set1 and Set2 ?
Output: 4
Input: Consider Input: Set1: '{3, 7, 12, 13, 16}', Set2: '{1, 3, 4, 6, 7, 9, 11, 15, 16, 17}'. How many elements are there in the union of Set1 and Set2 ?
| Output: 12
|
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: Wait, wait. Let's spin the positive. That will help pass time, too.
A: | I'm telling you, you need to write a book, man. You need to write an inspirational quote book because you're just so positive all of the time, Pinky. |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
One example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Solution is here: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Now, solve this: [{'first': -80, 'second': 71}, {'first': -26, 'second': 87}, {'first': 77, 'second': -96}, {'first': 12, 'second': 44}, {'first': 93, 'second': 9}, {'first': -27, 'second': 40}, {'first': 20, 'second': 19}, {'first': -40, 'second': 70}]
Solution: | [{'first': -80, 'second': 71}, {'first': -40, 'second': 70}, {'first': -27, 'second': 40}, {'first': -26, 'second': 87}, {'first': 12, 'second': 44}, {'first': 20, 'second': 19}, {'first': 77, 'second': -96}, {'first': 93, 'second': 9}] |
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: 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 solution: 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.
Problem: What are you doing, kid? Do you know what a goalie is supposed to do in hockey?
| Solution: I block it. I put my hands up and my knees down. I stand in the middle between whatever comes my way and whatever is behind me. |
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: elephant
A: | herbivore |
Subsets and Splits