prompt
stringlengths 47
11.8k
| response
stringlengths 0
2.99k
|
---|---|
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
Ex Input:
[83, 41, -13, 63, -50]
Ex Output:
20
Ex Input:
[-80, -45, -61, -21, 59, -76, 89, 4, -28, -32]
Ex Output:
4
Ex Input:
[19, -3, -46]
Ex Output:
| 22
|
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Ex Input:
Set1: '{17, 20, 4, 12}', Set2: '{3, 4, 5, 6, 15, 16, 17}'. How many elements are there in the union of Set1 and Set2 ?
Ex Output:
9
Ex Input:
Set1: '{1, 7, 8, 9, 12, 13, 14, 16, 17, 20}', Set2: '{2, 3, 9, 11, 12, 15, 16}'. How many elements are there in the union of Set1 and Set2 ?
Ex Output:
14
Ex Input:
Set1: '{1, 5, 7, 11, 12, 14, 16, 19}', Set2: '{9, 19, 17, 15}'. How many elements are there in the union of Set1 and Set2 ?
Ex Output:
| 11
|
This task is to find the number of 'For' loops present in the given cpp program.
int a,n,sum=0;
void t(int m)
{
int i,j;
for(i=m;i<=a;i++)
{
if(a%i==0)
{
a=a/i;
if(a==1)
{
sum+=1;
}
else t(i);
a=a*i;
}
}
}
int main()
{
int k;
cin >> n;
for(k=0;k<n;k++)
{
sum=0;
cin >> a;
t(2);
cout << sum << endl;
}
return 0;
} | 2 |
TASK 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.
PROBLEM: Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.
SOLUTION: SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock) >= 2000 ORDER BY sum(T1.Num_of_stock) DESC
PROBLEM: Select the name of the products with a price less than or equal to $200.
SOLUTION: SELECT name FROM products WHERE price <= 200
PROBLEM: How many roles are there?
SOLUTION: | SELECT count(*) FROM ROLES
|
Detailed Instructions: Given a part of privacy policy text, identify the type of personal information which is collected, used, tracked or retained. The type of information should be present inside the given policy text, answer as 'Not Specified' otherwise
Q: The site collects your unspecified information for an unspecified purpose. Collection happens in an unspecified way. You can opt in for data collection for the collection of your information.
A: | Unspecified |
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:We don't spend all of our tax money on people in death row.
Solution: | Valid |
Your task is to localize given English phrase into Telugu language. When localising, follow these rules - (1) General names and concepts can be translated (2) Domain specific names can just be transliterated (3) Localised phrases can have both partial translated and transliterated parts (4) But only partial translation or only partial transliteration is not allowed (5) Copy special characters and numbers as is
Ex Input:
Titlebar & & Frame
Ex Output:
శీర్షికపట్టీ & & చట్రము
Ex Input:
Basic Power Management Operations
Ex Output:
పవర్ నిర్వహణా బ్యాక్ఎండ్
Ex Input:
Use the system bell whenever a key is rejected
Ex Output:
| కీ తిరస్కరించబడినప్పుడు సిస్టమ్ బెల్ను వుపయోగించుము
|
In this task you will be given an arithmetic operation in Italian and you have to find its answer. The operations 'addition' and 'subtraction' have been replaced with their italian translations i.e you need to perform addition when you see 'aggiunta' and subtraction in case of 'sottrazione'.
6742 sottrazione 6935 aggiunta 3384 sottrazione 9973 aggiunta 1923
-4859
2376 aggiunta 8770 sottrazione 1886 sottrazione 9511 aggiunta 1105 sottrazione 7622
-6768
4928 aggiunta 7022 aggiunta 2793
| 14743
|
Definition: In this task you will break down a question into the basic steps required to answer it.
A question decomposition is a numbered list of operations that must be performed to answer the original question. Imagine explaining your question to a friendly droid by listing each action it should take in order for the question to be answered. Each step in our decomposition should refer to either an entity (known or unknown), a propery of an entity or a query operation (count, group, union, etc.)
Here are the list of step templates and their description:
Select: A select step is used to return a set of objects. There are no references to previous steps in a select step. template: Return [attributes]
Filter: A filter step is used to return results from a previous step to which a certain condition applies. template: Return [#step] [condition]
Project: A project step should return certain attributes of the results of a previous step. template: Return [attributes] of [#step]
Aggregate: An aggregate step returns an aggregator function applied on a step's result. template: Return the [aggregator] of [#step].
Group: A group step is an aggregator applied on attributes. template: Return the [aggregator] of [#step] for each [attribute]
Superlative: A superlative step is used to return the result with a highest/lowest attribute among other results. template: Return [#step1] [where] [#step2] [is] [highest / lowest]
Comparative: A comparative step is used when we need to compare an attribute with a number to filter results. template: Return [#step1] [where] [#step2] [comparator] [number]
Union: A union step is used to return results of two steps together. template: Return [#step1] [or / ,] [#step2]
Intersection: An intersection step returns the result that two steps have in common. template: Return [attribute] of both [#step1] and [#step2]
Discard: A discard step returns result of a step and excludes result of another step from it. template: Return [#step1] besides [#step2]
Sort: A sort returns result of another step in a specific order. template: Return [#step1] [ordered / sorted by] [#step2]
Is true: An is true step checks a condition on another result and returns a true or false. template: Return [is / if] [condition]
Arithmetic: An arithmatic step operates an arithmatic operation on one or more steps. template: Return the [arithmetic op.] of [#step1] [and] [#step2].
Input: question: when did alexander die on?
Output: | #1 return alexander
#2 return when did #1 die |
Teacher:The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Teacher: Now, understand the problem? Solve this instance: Context: 'All of the additional water and food? That doesn't seem very fair. ☹️' 'Well I'll be splitting it with everyone on the trip as we go up. The people that choose to stay will still get all their basic supplies of food and water. The backpacking trip is going to take three days though, we're gonna need the resources😮' 'I see. Which resource do you desire most?'
Utterance: 'Well I was thinking you could get all the extra firewood and work on the group meal and bonfire for friday night'
Student: | No |
Given the task definition and input, reply with output. 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.
Guinea
| Republic |
In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order.
[EX Q]: [2, 3, 5, 10, 10, 1, 9, 10, 7] , [5, 3, 6, 5, 1, 7, 2, 2, 10]
[EX A]: [1, 2, 3, 5, 7, 10]
[EX Q]: [8, 9, 9, 4, 2, 2] , [3, 5, 10, 3, 7, 9]
[EX A]: [9]
[EX Q]: [6, 8, 5, 8, 8, 6, 6] , [9, 1, 4, 10, 9, 4, 8]
[EX A]: | [8]
|
In this task, you have to generate the named entities (NER) given its ingredients of the recipe. Named entities are the names of the items without their quantity.
1/2 cup onion, diced, 1 tablespoon olive oil, 2 garlic cloves, minced, 16 ounces can pinto beans, not drained, 1 teaspoon salt, 1/4 teaspoon black pepper, 1 teaspoon chili powder, 1/2 teaspoon cumin, 1/2 teaspoon smoked paprika, 1 1/2 cups cooked brown (or white) rice, flour tortillas, shredded cheese, diced avocado, salsa
onion, olive oil, garlic, pinto beans, salt, black pepper, chili powder, cumin, paprika, brown, flour tortillas, cheese
1 pd. ground beef, 1/2 c. chopped onion, 1 (8 oz) can tomato sauce, 1 (6 oz) can tomato paste, 1/4 c. water, 1 tbsp parsley flakes, 2 tbsp italian seasoning, 1 tsp beef bouillon, 1/4 tsp garlic powder, 1 (8 oz) pkg of cream cheese, 1 c. cottage cheese, 1/4 c. sour cream, 2 eggs beaten, Lasagna noodles, Pepperoni, Parmesan cheese, Mozzarella cheese
ground beef, onion, tomato sauce, tomato paste, water, parsley, italian seasoning, beef bouillon, garlic, cream cheese, cottage cheese, sour cream, eggs, Lasagna noodles, Pepperoni, Parmesan cheese, Mozzarella cheese
4 to 5 lb. pot roast (shoulder roast is good), 1 Tbsp. oil, 1 clove garlic, minced, 1 medium onion, chopped, 1 (16 oz.) can tomatoes, coarsely chopped, 2 or 3 fresh or canned jalapenos or 8 oz. canned chopped green chilies, 1/2 tsp. oregano, 1 tsp. salt, 1/2 tsp. pepper, 1/4 tsp. crushed red pepper (dry), 2 (15 oz.) cans Ranch Style beans with chili powder, 1/2 c. sliced or chopped ripe olives (optional)
| pot roast, oil, clove garlic, onion, tomatoes, green chilies, oregano, salt, pepper, red pepper, beans, olives
|
Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity).
Entity 1: rapist
Entity 2: child
yes
Entity 1: wild pig
Entity 2: tail
yes
Entity 1: cigarette smoke
Entity 2: nicotine
| yes
|
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.
Input: Consider Input: Context: 'You are being very kind then, im elderly so trying to make fresh water by boiling it from getting it from a river was concerning to me. How about you take all three of the food for your kiddo's' 'That sounds fair. The kids can bathe in the stream. We are good with 2 food packs.' 'Lol, wish i could. Then you take all 3 of the firewood, I'll take 2 of the Water and 1 of the food, sound good?'
Utterance: 'Just to be clear, I get 3 firewoods, 1 water and 1 food. You get 0 firewood, 2 waters and 2 food packs?'
Output: No
Input: Consider Input: Context: 'Hey!🙂 How are you? What were your plans for the weekend?' 'Hi. I'm doing great. How are you? I'm planning on going camping.🙂' 'I'm great! Me too! did you have any specific plans? I wanted to make an extra fire to cook with and cook a nice meal. '
Utterance: 'Yes. I'm actually taking a large group of people. Some friends and family are going and I kind of also wanted a bit of extra firewood. 🙂'
Output: Yes
Input: Consider Input: Context: 'Hi there, I am doing well, I can get you an extra firewood as long as I can get extra Water and Food to thrive during camping' 'I would be ok with that but i will need some water and food as Im a little out of shape' 'I can get you one package of water and food, will that work?'
Utterance: 'how am i supposed to stay alive with one package of food and water im fat lol'
| Output: Yes
|
Read the given text and if it has abusive content then indicate via "yes". Otherwise indicate via"no".
We consider the content to be abusive if it contains any of the following instances: (1) Identity Directed Abuse (e.g., Content which contains a negative statement made against an identity. An identity is a social category that relates to a fundamental aspect of individuals community, socio-demographics, position or self-representation) (2) Affiliation Directed Abuse (e.g., Content which express negativity against an affiliation. We define affiliation as a (more or less) voluntary association with a collective. Affiliations include but are not limited to: memberships (e.g. Trade unions), party memberships (e.g. Republicans), political affiliations (e.g. Right-wing people) and occupations (e.g. Doctors).) (3) Person Directed Abuse (e.g., Content which directs negativity against an identifiable person, who is either part of the conversation thread or is named. Person-directed abuse includes serious character based attacks, such as accusing the person of lying, as well as aggression, insults and menacing language.) and (4) Counter Speech (e.g., Content which challenges, condemns or calls out the abusive language of others.). Note that URLs in the text have been replaced with [Link].
Do it. I want to hear Mueller tell them just how wrong they all were. | no |
Instructions: The given sentence contains a typo which could be one of the following four types: (1) swapped letters of a word e.g. 'niec' is a typo of the word 'nice'. (2) missing letter in a word e.g. 'nic' is a typo of the word 'nice'. (3) extra letter in a word e.g. 'nicce' is a typo of the word 'nice'. (4) replaced letter in a word e.g 'nicr' is a typo of the word 'nice'. You need to identify the typo in the given sentence. To do this, answer with the word containing the typo.
Input: Peoole standing around flower covered tables next to garden.
Output: | Peoole |
Detailed Instructions: In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list.
Q: ['t', '139', 'g', 'h', '413']
A: | 1, 3, 4, 9 |
Q: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the alphabetical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no alphabetical element is in the list.
['B', 'a', 'h', 'Q', '9261', 'z', '3807', 'e', '3355', '3065', '3587', '7065', '6875', 'w', 'g', '1015', 'm', 'q', '2213', 'R', 'l', 'T', '2039', 'c', 'b', '4445', 'o', 'W', '1467', '4089', '6685', 's', 'N', 'm', '2051']
A: | 1, 2, 3, 4, 6, 8, 14, 15, 17, 18, 20, 21, 22, 24, 25, 27, 28, 32, 33, 34 |
In this task you will be given a list of numbers and you need to find the mean (average) of that list. The mean of a list can be found by summing every number in the list then dividing the result by the size of that list. The output should be rounded to 3 decimal places.
One example is below.
Q: [1,3,5]
A: 3.000
Rationale: The mean of the input list is (1+3+5)/3, which equals 3. This is a good example.
Q: [13.43, 82.541, 93.397, 132.691, -35.29, 87.468, 47.946, -1.68]
A: | 52.563 |
Given the task definition and input, reply with output. You are asked to create a question containing a blank (_), based on the given context word. Your question must contain two related but different objects; for example "trophy" and "suitcase". The expected answer to your question must be one of the objects present in the sentence. The expected answer must not be associated with any specific word in the question; instead it should depend on the context present in the question. The expected answer should not be equally likely to fill the blank. For your question, there should be a agreed upon answer to fill in the blank. Your generations should NOT contain potentially explicit, offensive, or adult content. Do not use animals or proper nouns (e.g., New York, Macbook, Jeff Bezos, McDonald's, ...) as your objects. Avoid repeating the same style, pattern or phrases in each question, try to increase diversity by varying sentence structure, blank placement etc. Your question must contain at least 15 and at most 30 words. You must utilize the given context word while writing the question. Your question must contain only one blank. Make sure that Object X and Y have the same number e.g. when ObjectX is singular, Object Y must be singular, too. The two objects (Object X & Object Y) should be used ONCE in your question. Here is a list of attributes and associated pair of contrastive words which may be used to create a valid question using the objects. You can use either of the contrastive words, but not both. You should think about more such attributes and associated words and use them in your question.
| Attribute | triggerword | contrastive triggerword |
| age | old | new |
| altitude | low | high |
| area | small | vast |
| brightness | dark | light |
| clarity | obscure | clear |
| cleanness | dirty | clean |
| complexity | simple | complex |
| cost | cheap | expensive |
| density | sparse | dense |
| depth | shallow | deep |
| distance | near | far |
| electric conductivity | low | high |
| flexibility | rigid | flexible |
| granularity | fine | coarse |
| hardness | soft | hard |
| length | short | long |
| magnitude | small | large |
| mass | small | large |
| odor | weak | strong |
| pressure | low | high |
| resistance | low | high |
| shape | round | sharp |
| shape | flat | spiky |
| size | small | large |
| sound | quiet | loud |
| sound pitch | low | high |
| speed | slow | fast |
| stability | unstable | stable |
| strength | weak | strong |
| temperature | low | high |
| texture | smooth | rough |
| thermal conductivity | low | high |
| thickness | thin | thick |
| volume | small | large |
| weight | light | heavy |
| width | narrow | wide |
| location | in | out |
| location | up | down |
| location | above | below |
| location | on | off |
| location | to | from |
Context Word: calories.
| Jack ordered a vegeterian sandwich over a bacon and ham sandwich, because the _ has less calories. |
In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer
Example: 6 @ 17
Example solution: 23
Example explanation: Here, '@' represents the addition operation. So, the answer is 23 (6+17=23).
Problem: 2806 @ 8793 # 3946
| Solution: 7653 |
Given the task definition and input, reply with output. In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively.
NGalUpTxrbCekvnAKZ
| x |
Definition: In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively.
Input: lxDGIFyBuezfgPAO
Output: | z |
For the given English description, write an SQL command such that it accomplishes every step. 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: Did M0 's star , director , art director , producer , and cinematographer direct M1 and direct M2 , M3 , and M4
Example solution: SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.director.film M0 .
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.director.film M3 .
?x0 ns:film.director.film M4 .
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M0
}
Example explanation: The query correctly extracts data on M0's star and other persons related to M0 and finds if they appear in director attributes for entities M1 to M4
Problem: Did M0 and M4 edit , direct , write , and produce M1 , M2 , and M3
| Solution: SELECT count(*) WHERE {
M0 ns:film.director.film M1 .
M0 ns:film.director.film M2 .
M0 ns:film.director.film M3 .
M0 ns:film.editor.film M1 .
M0 ns:film.editor.film M2 .
M0 ns:film.editor.film M3 .
M0 ns:film.producer.film|ns:film.production_company.films M1 .
M0 ns:film.producer.film|ns:film.production_company.films M2 .
M0 ns:film.producer.film|ns:film.production_company.films M3 .
M0 ns:film.writer.film M1 .
M0 ns:film.writer.film M2 .
M0 ns:film.writer.film M3 .
M4 ns:film.director.film M1 .
M4 ns:film.director.film M2 .
M4 ns:film.director.film M3 .
M4 ns:film.editor.film M1 .
M4 ns:film.editor.film M2 .
M4 ns:film.editor.film M3 .
M4 ns:film.producer.film|ns:film.production_company.films M1 .
M4 ns:film.producer.film|ns:film.production_company.films M2 .
M4 ns:film.producer.film|ns:film.production_company.films M3 .
M4 ns:film.writer.film M1 .
M4 ns:film.writer.film M2 .
M4 ns:film.writer.film M3
} |
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.
--------
Question: How many car models are produced in the usa?
Answer: SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'
Question: What are the first and last names of the artist who perfomed the song "Badlands"?
Answer: SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands"
Question: What are the product ids and color descriptions for products with two or more characteristics?
Answer: | SELECT t1.product_id , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING count(*) >= 2
|
You will be given a definition of a task first, then some input of the task.
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK
Output: | walk right thrice after look around left thrice |
TASK DEFINITION: Your task is to localize given English phrase into Telugu language. When localising, follow these rules - (1) General names and concepts can be translated (2) Domain specific names can just be transliterated (3) Localised phrases can have both partial translated and transliterated parts (4) But only partial translation or only partial transliteration is not allowed (5) Copy special characters and numbers as is
PROBLEM: Make windows explode when they are closed
SOLUTION: విండోలు మూసినప్పుడు ఎక్స్ ప్లోడ్ అగునట్లు చేయుము
PROBLEM: A small, non-configurable window manager
SOLUTION: చిన్నని, ఆకృతీకరించ- లేని విండో నిర్వాహిక
PROBLEM: Make modal dialogs smoothly fly in and out when they are shown or hidden
SOLUTION: | విండోలు చూపునప్పుడు లేదా మరగుపడునప్పుడు సున్నితంగా ఫేడ్ అయ్యేట్లు/ కానట్లు చేయుము
|
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
[EX Q]: I know you 're probably tired of hearing this one but practicing mindfulness .
[EX A]: yes
[EX Q]: It 's not like it 's med school .
[EX A]: no
[EX Q]: Everyone has anxiety and it never fully goes away , but knowing how to treat it can help in the long run .
[EX A]: | no
|
Definition: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Input: [ -2.068 -86.291 70.814 -22.488 97.061 -89.099 24.156]
Output: | 97.061 |
You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
[Q]: password = POLyh4
[A]: 0
[Q]: password = 06z6BkNyBIp2R7ms1eZNtrP75Oz
[A]: 7
[Q]: password = as
[A]: | 4
|
Detailed Instructions: Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
Q: It 's something to think about .
A: | no |
Q: In this task, you will be given a list. The list is several integers and letters separated with a comma, written within a []. You can create new lists by dropping one of the items in the input list. Your task is to write a list containing all the possible lists you can make by dropping one item from the input list. For example, if the input list contains two items, you can drop one of the items each time. So the output should be a list comprising two inner lists that you have created by decreasing the items.
['2', '0', '5']
A: | [['2', '0'], ['2', '5'], ['0', '5']] |
In this task, you are given an english sentence and a kurdish sentence you have to determine if they both are faithful translations of each other.
Construct an answer that is 'Yes' if the second 'Kurdish' sentence is a translation of 'English' sentence and 'No' otherwise
'English : Men have abused/raped 47 girls in June.','Kurdish : Ji sedî 72yê keçên destdirêjî lê hatîn kirin mamosteyên(dersdarên) wan destdirêjî li wan kiriye. Ji sedî 76,5ê zarokên destdirêjî lê hatîn kirin li dibistanan destdirêjî lê hatiye kirin.' | No |
Detailed Instructions: In this task, you're given a dialogue between a customer and a flight booking agent with a gap in the conversation. Your job is to find the answer of the previous dialogue. Avoid using irrelevant extra information while creating the answer. The answer should be relevant to the question before the blank. If you fill the blank with a question, it should have an answer from the agent in the given dialogue. Fill the gap marked with underline.
Q: customer: Hi.
agent: Hello, how may I help you today?
customer: Helen Gonzalez here. Reserve a flight ticket for me that is from HOU to BOS. For my business trip.
__
customer: My price limit is less than 500. My travelling dates for journey are 02/10 to 02/12.
agent: Ok, wait for a moment please.
customer: Sure.
agent: There is a direct flight of fare 100 and the airline is naming as Southwest, are you ok with this booking?
customer: You can book it.
agent: Ok, your booking is done with the flight number 1004.
customer: Thank you.
agent: You are welcome, have a nice day.
A: | agent: Sure, may I know your respective dates of journey please? |
In this task you will be given a list, of lists, of integers. For every inner list contained in the input list, you should multiply every even number in that list. The output should be a list of integers with the same length as the number of lists in the input list. If there are no even numbers in an inner list you should output 0 for that list.
--------
Question: [[17, -39, 44], [5, -40, 1], [-37, -30], [-46, -4, 26, -5, -22], [28, 22, 9, 36, -48], [45, -24, -4, 15], [38, -30], [-7, -29], [-16, -17, 19], [-8, 36, 50], [-48, 1, -10], [8, -50, -2], [25, -18]]
Answer: [44, -40, -30, -105248, -1064448, 96, -1140, 0, -16, -14400, 480, 800, -18]
Question: [[-24, 45, -3], [-35, 26, -34, -49], [23, -1, -24, -37, -15], [27, -21, 27, 34, 15], [-41, 4, -11], [2, 6, 33, -31], [41, 47, 46, -45], [16, -11, -42, 5, 34], [49, 10, 3], [30, 9, -18, 7, -4], [11, 21], [16, -25, -36], [7, -2, -12, -14], [1, -46, -4, 21, -43], [12, -15]]
Answer: [-24, -884, -24, 34, 4, 12, 46, -22848, 10, 2160, 0, -576, -336, 184, 12]
Question: [[24, 15, 45, -4], [-19, -24, -10], [-9, 38, -50]]
Answer: | [-96, 240, -1900]
|
Given a sentence in the Japanese and Thai language. Your task is check if the Filipino sentence is translation of Japanese. if the translation is correct than generate label "Yes", otherwise generate label "No".
Let me give you an example: Japanese: 詳細は昨日UTC17時30分、英国議会でイギリスのルス・ケリー運輸大臣によって伝えられた。
Thai: รายละเอียดถูกเปิดเผยโดยเลขาธิการกระทรวงคมนาคมของUK นางRuth Kelly ในสภาสามัญชน เมื่อเวลา17:30 UTC
The answer to this example can be: Yes
Here is why: The converted Thai sentence is correctly translated from Japanese because converted sentence has the same message as the original Japanese sentence that Details were given yesterday in the House of Commons at 1730 UTC by Britain's Transport Secretary Ruth Kelly.
OK. solve this:
Japanese: GAOは意思決定プロセスにおいて、いくつかの異常を発見した。
Thai: GAO พบว่าความผิดปกติหลายอย่างในการขั้นตอนการตัดสินใจ
Answer: | Yes |
Detailed Instructions: In this task you will be given a list of integers. You should remove all of the integers that are divisible by 3 from the list. If every integer in the input list is divisible by 3 then an empty list should be returned. Zero is divisible by 3.
Problem:[-70, 18, -33, 51, -64]
Solution: | [-70, -64] |
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.eleybourn.bookcatalogue.
Ans: LOVE IT Exactly what I have been looking for. My entire library in the palm of my hand. I use it every day. Simple and neatly organized. There is no better cataloging app available! The ability to sync with a desktop client would be awesome and worth every penny.
Generate a 3-star review (1 being lowest and 5 being highest) about an app with package com.grarak.kerneladiutor.
Ans: app freezes for me the last working version is 0.9.9.4 all newer versions freeze when I open app. I'm on Oneplus 1 CM12.1 Private Kernel r18
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package org.openintents.filemanager.
Ans: Best My favourite free app
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.marvin.talkback.
| Ans: Supra No |
Detailed Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
Problem:ভারতীয় সেনাবাহিনী আর বিএসএফ কি এতই দুর্বল যে বর্ডার পার করে এসে পাকিস্তানিরা হামলা করে আবার চলে যায় ও আচ্ছা এইবার বুঝলাম বিএসএফ তো শুধু বাঙালীদের সাথেই পারে
Solution: | non-religious |
You are given a short text as a title. Your task is to generate a poem as output that is related to the given title and should feel like written by kids. The output should be a run-on sentence (two or more complete sentences connected without any punctuation). The poem should not be too long or too complex, because it should feel like it is written by younger person without high level of literature education.
Smiles | a smile will bring joy and laughter but sometimes a smile be not a smile because a smile can turn up side down and be a frown so keep a smile and not a frown or else your happiness will drown jessica g well |
In this task, you will be shown an English sentence. You need to classify the sentence as either a representation of an anaphor number agreement or as an incorrect representation. An anaphor is an expression whose interpretation depends upon another expression. Anaphor number agreement is a restriction where a phrase agrees with the preceeding expression: plurals match plurals or singular expressions match singular expressions. In this task a valid representation of anaphor number agreement should be denoted as 'good' while everything else should be denoted as 'bad'. A correct representation of an anaphor number agreement will be a grammatically correct instance of a sentence where the subject and self-referencing nouns match plurality. An incorrect representation is a sentence in which the subject and self-referencing noun's plurality do not match.
Ex Input:
April has cared for themselves.
Ex Output:
bad
Ex Input:
All patients care for herself.
Ex Output:
bad
Ex Input:
Candice isn't visiting themselves.
Ex Output:
| bad
|
In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Ist das der grosse Wurf? . Ein grossartiger Anfang auf jeden Fall! Polarkreis 18 haben hier eine sehr interessante Platte abgeliefert. Ich bin schon mal darüber erfreut, dass man in den Musikgazetten positiven Kritiken über eine Platte lesen kann, auf der nicht pubertierende Krawallmacher ihre Instrumente quälen und die dann als Britpop verkauft werden soll. Die Musik zieht unaufhörlich vorwärts, mittel- und hochtonlastig erinnert mich das ein wenig an die achtziger Jahre. Würde Depeche Mode heute so klingen? Könnte sein! Die aufeinander folgenden Stücke somedays, sundays" und crystal lake" finde ich sehr gut. Es geht dann auch gleich interessant und schmissig weiter. Richtig überzeugend wird die Platte natürlich dann, wenn man bedenkt dass dies ein Debütalbum einer Kapelle aus Dresden ist. Hört, hört so etwas hätte ich von der Insel erwartet, aber nicht aus D. Noch mal comes around" angehört, ja doch, die Band hat das Zeug uns in Zukunft zu begeistern und zu überraschen. Beim Debüt bleibe ich mal bei vier Sternen, na gut viereinhalb Sterne! Das muss jetzt aber reichen, schliesslich soll die nächste CD ja noch eine Steigerungsmöglichkeit bieten. Ein Geheimtipp ist Polarkreis nicht mehr. Dennoch sollte man die CD kaufen, da sie sehr gut Musik enthält und der Käufer später mit der Erstauflage angeben kann. So im Sinne von Schau mal, die Erstauflage von Polarkreis 18, ich habe ja schon damals das grosse Potential erkannt" | POS |
Your task is to localize given English phrase into Telugu language. When localising, follow these rules - (1) General names and concepts can be translated (2) Domain specific names can just be transliterated (3) Localised phrases can have both partial translated and transliterated parts (4) But only partial translation or only partial transliteration is not allowed (5) Copy special characters and numbers as is
Input: Consider Input: Selecting another scheme will discard any changes you have made
Output: వేరే స్కీము యెంచుకొనుట మీరు చేసిన మార్పులను తీసివేస్తుంది
Input: Consider Input: Hide the tab bar when only one tab is open
Output: ఒక టాబ్ మాత్రమే తెరిచివున్నప్పుడు టాబ్ బార్ను మరుగున పెట్టుము
Input: Consider Input: Start a new theme by assigning it a name. Then use the Add button on the right to add emoticons to this theme.
| Output: కొత్త థీమ్ను దానికి పేరును చేర్చుట ద్వారా ప్రాంభించుము. ఈ థీమ్కు ఎమోటికాన్సును జతచేయుటకు కుడిప్రక్కని జతచేయి బటన్ను వుపయోగించుము.
|
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
[-3, 85, -29, 40, 34, -70] | 6 |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
We don't spend all of our tax money on people in death row.
Valid
Life incarceration will never let him kill again, and its cheaper.
Valid
But they do have a law forcing post-conviction DNA testing.
| Valid
|
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: iKDYhinWwLnFVCdMlRmkIua, zkQWwdwLnFVCdMlRQKtieeb
Output: | iKDYhinWcdfllmnrvwmkIua, zkQWwdcdfllmnrvwQKtieeb |
Definition: Given a sentence in the Japanese and Thai language. Your task is check if the Filipino sentence is translation of Japanese. if the translation is correct than generate label "Yes", otherwise generate label "No".
Input: Japanese: そのグループは昨日、画像が警察に没収されるのを防ぐため、彼らがデジタルカメラのメモリスティックを主要メンバーの服の中に隠そうとした努力について語った。
Thai: ทางคณะแถลงวานนี้ถึงความพยายามของพวกเขาที่จะซ่อน memory stick กล้องดิจิตอลไว้ในเสื้อผ้าของสมาชิกหลักเพื่อที่จะเลี่ยงไม่ให้รูปถ่ายถูกยึดโดยเจ้าหน้าที่ตำรวจ
Output: | Yes |
Given a hotel review and the corresponding polarity of review (i.e., Negative or Positive) identify if the polarity is correct. Write 'true' if it's correct, 'false' otherwise.
Q: Review: We've stayed here before but this time around was a marked difference in quality and service - the staff wasn't rude, just incompetent. For example, we ordered wine glasses for the room because the hotel no longer services a mini bar in the room, which seemed like a really cheap way to go for this type of hotel. Nonetheless, the staff brought us 4 coffee mugs... The list of issues goes on unfortunately, including the low grade in-room movie options - our audio and video did not sync on our rental; we eventually had to stop watching after 20 minutes. And the room itself was not clean; the bathroom sink vent holes were black with mold. Clearly the hotel has pulled back on not only amenities, but training or sufficient staff... oh, but the price point for this hotel has stayed the same. Find a newer hotel, there are many in this great city.
Polarity: Negative
A: | true |
In this task you will be given a list, of lists, of integers. For every inner list contained in the input list, you should multiply every even number in that list. The output should be a list of integers with the same length as the number of lists in the input list. If there are no even numbers in an inner list you should output 0 for that list.
Example Input: [[-13, -41, 49], [-14, 24, 24, -44], [-10, -12, 26, -32, 38], [-1, -9], [-48, -31], [-5, 25, 33, -5, 7], [-23, -50, 38, 24, -5], [-17, -46, -9, 36]]
Example Output: [0, 354816, -3793920, 0, -48, 0, -45600, -1656]
Example Input: [[2, 48, 37], [23, 10, -12, -32, -4], [-36, 29, -34, -8], [13, -27, -28], [29, -23, -4, -43, -37], [-22, 33, -40], [23, 18, -23, -35], [-6, -22, 45]]
Example Output: [96, -15360, -9792, -28, -4, 880, 18, 132]
Example Input: [[45, -1, -38, 50], [13, -2], [-15, 39]]
Example Output: | [-1900, -2, 0]
|
In this task, you will be presented with a question in Dutch language, and you have to write the person names from the question if present. B denotes the first item of a phrase and an I any non-initial word. Phrase used for the person name - PER. There can be instances with no person name entity, then return 'None'.
Schouppe zei toen dat er geen enkele reden is om Electrabel trouw te blijven aangezien de maatschappij op een vrij bruuske manier de samenwerking voor treintransport stopzette .
Schouppe: B-PER
Daarnaast bevat het werkstation van de leerling ook een satellietontvanger ( Integrated Recorder Decoder ) en een gsm-modem .
None
Wie nog meer passagiers heeft te vervoeren , moet voor de configuratie met zeven of acht zetels kiezen .
| None
|
You will be given a definition of a task first, then some input of the task.
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
[292, 555, 53, 408, 953, 44, 514, 635, 302, 751, 784, 163, 197]
Output: | [53, 953, 751, 163, 197] |
Teacher:The given sentence contains a typo which could be one of the following four types: (1) swapped letters of a word e.g. 'niec' is a typo of the word 'nice'. (2) missing letter in a word e.g. 'nic' is a typo of the word 'nice'. (3) extra letter in a word e.g. 'nicce' is a typo of the word 'nice'. (4) replaced letter in a word e.g 'nicr' is a typo of the word 'nice'. You need to identify the typo in the given sentence. To do this, answer with the word containing the typo.
Teacher: Now, understand the problem? Solve this instance: Two omputers and a digital camera are on a desk.
Student: | omputers |
Detailed Instructions: In this task, you will be presented with a question in Dutch language, and you have to write the person names from the question if present. B denotes the first item of a phrase and an I any non-initial word. Phrase used for the person name - PER. There can be instances with no person name entity, then return 'None'.
Q: België voert nu een algemeen verbod in voor wat betreft het dierenmeel dat afkomstig is van kadavers ( zie pagina 1 ) .
A: | None |
Given the task definition and input, reply with output. In this task, you will be presented with a premise sentence and a hypothesis sentence in Persian. Determine whether the hypothesis sentence entails, contradicts, or is neutral with respect to the given premise sentence. Classify your answers into "Contradiction", "Neutral", or "Entailment".
Premise: گفت: کانالهای تلگرامی بیش از ۵۰۰۰ عضو باید در وزارت ارشاد به ثبت برسند و معتقدم که این اقدام درستی است و جلوی شایعات و حرفهای بیربط گرفته میشود. <sep> Hypothesis: بخش خصوصی نگرانی بابت شایعات ندارد
| Neutral |
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: 'Gosh, that's a bg favor because I need the firewood. I will give you all of the firewood if you will give me all of the food. How's that?' 'Fair enough! Thank you! I would really appreciate any extra water that you have too?' 'I need some water...I'll give you two of mine so that I can hang on to one.Is that okay with you?'
Utterance: 'Yes, that works! Thank you! Where are you heading out to camp?'
No
Context: 'Yes! I've been looking forward to this trip for a while and I'm so excited' 'Yeah me too, so apparently there are some extra supplies up for grabs we need to divvy up between us. Do you have any thoughts on how we should do that?' 'I was thinking we can say which ones we want more? Or depending on where we are camping and our camping abilities, we might need some materials more over others'
Utterance: 'That sounds good to me! I heard where we are going it is going to be really cold the next couple of nights so we definitely need extra firewood. We also have a pretty big group so extra food and water would come in handy too. So how about I take 2 of the extra firewood, 1 extra water and 2 extra food?'
Yes
Context: 'Hello, how are you? Looking forward to camping?' 'Oh yeah, that's for sure. What camping item do you prioritize?' 'I'm going to need some extra wood because I'm somewhat injured and can't really gather more.'
Utterance: 'Oh, I see. Well, I personally need lots of water to stay hydrated since I drank a lot already.'
| Yes
|
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: You know, it's okay to ponder these things sometimes. There're no answers to love. I was first introduced to love when I saw that movie. You know, Michael J. Fox gets into a DeLorean. I think that's what it was called. Michael J. Fox gets into a DeLorean.
A: | Yeah, I saw it. It was a double feature with human-like reptile people who know karate. |
In this task, you will use your knowledge about language (and common sense) to determine what element the marked number refers to. The numbers are marked with two underlines around them, like: _ number _. There are several possible answers, you'll need to choose the proper one. Carefully read the given text, pay special attention to the marked number, think about what (unwritten) information the marked number holds inside, choose the most adequate word(s) from the optional answers. If none of them seems right to you, there's also an option for other. If your answer is "REFERENCE", also write the reference entity, otherwise write the implicit option name. Options to choose from are:
REFERENCE: Some object which is being mentioned in the text before or after the target number. The reference answer has a higher priority than any other. If both Reference and another answer are possible, prioritize the Reference.
YEAR: Describing a calendric year
AGE: Describing someone's age
CURRENCY: Reference to some monetary value e.g dollar, euro etc.
PEOPLE: Describing a single/plural persons
TIME: Describing a time of the day. Usually you can add the word o'clock after those numbers.
OTHER: Some other option, which isn't listed here.
Cassander: Would you say the love between Achilles and Patroclus is a corrupting _ one _ ?
Aristotle: When men lie together in lust , it is a surrender to the passions and does nothing for the excellence in us . Nor does any other excess , Cassander , jealousy among them . But when men lie together , and knowledge and virtue are passed between them that is pure and excellent . When they compete to bring out the good , the best in each other this is the love between men that can build a city - state and lift us from our frog pond . | REFERENCE love |
instruction:
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.
question:
Count the number of courses without prerequisites.
answer:
SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
question:
What is the flight number and its distance for the one with the maximum price?
answer:
SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1
question:
List all cities of addresses in alphabetical order.
answer:
| SELECT city FROM Addresses ORDER BY city
|
For the given English description, write an SQL command such that it accomplishes every step. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Q: Did M3 's American executive producer edit , write , and direct M0 , M1 , and M2
A: | SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.editor.film M2 .
?x0 ns:film.producer.films_executive_produced M3 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:people.person.nationality ns:m.09c7w0
} |
In this task you will break down a question into the basic steps required to answer it.
A question decomposition is a numbered list of operations that must be performed to answer the original question. Imagine explaining your question to a friendly droid by listing each action it should take in order for the question to be answered. Each step in our decomposition should refer to either an entity (known or unknown), a propery of an entity or a query operation (count, group, union, etc.)
Here are the list of step templates and their description:
Select: A select step is used to return a set of objects. There are no references to previous steps in a select step. template: Return [attributes]
Filter: A filter step is used to return results from a previous step to which a certain condition applies. template: Return [#step] [condition]
Project: A project step should return certain attributes of the results of a previous step. template: Return [attributes] of [#step]
Aggregate: An aggregate step returns an aggregator function applied on a step's result. template: Return the [aggregator] of [#step].
Group: A group step is an aggregator applied on attributes. template: Return the [aggregator] of [#step] for each [attribute]
Superlative: A superlative step is used to return the result with a highest/lowest attribute among other results. template: Return [#step1] [where] [#step2] [is] [highest / lowest]
Comparative: A comparative step is used when we need to compare an attribute with a number to filter results. template: Return [#step1] [where] [#step2] [comparator] [number]
Union: A union step is used to return results of two steps together. template: Return [#step1] [or / ,] [#step2]
Intersection: An intersection step returns the result that two steps have in common. template: Return [attribute] of both [#step1] and [#step2]
Discard: A discard step returns result of a step and excludes result of another step from it. template: Return [#step1] besides [#step2]
Sort: A sort returns result of another step in a specific order. template: Return [#step1] [ordered / sorted by] [#step2]
Is true: An is true step checks a condition on another result and returns a true or false. template: Return [is / if] [condition]
Arithmetic: An arithmatic step operates an arithmatic operation on one or more steps. template: Return the [arithmetic op.] of [#step1] [and] [#step2].
Q: question: A list of the top 10 countries by average invoice size. List country name and average invoice size.
A: #1 return countries
#2 return invoice sizes of #1
#3 return the average of #2 for each #1
#4 return the top 10 highest of #3
#5 return #1 where #3 is equal to any of #4
#6 return names of #5
#7 return #6 , #4
****
Q: question: What holy book is used in the religion Zhuang Zhou?
A: #1 return the religion Zhuang Zhou
#2 return holy book of #1
****
Q: question: who plays tara in chrissa?
A: | #1 return chrissa
#2 return tara of #1
#3 return who plays #2
****
|
Detailed Instructions: In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order.
Problem:[7, 5, 3, 8, 2, 7, 2, 5, 1] , [4, 6, 4, 7, 8, 9, 2, 9, 1]
Solution: | [1, 2, 7, 8] |
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
Q: [149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15]
A: 1
****
Q: [31, 38, 72, 90, 93, 20, 45, 40, 52, 41]
A: 2
****
Q: [154, 145, 136, 127, 118, 109, 100, 91, 82, 73, 64, 55, 46, 37, 28]
A: | 1
****
|
Instructions: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Input: THEM: i would like the hats and 1 book YOU: i cannot give up the hat THEM: i don't think it would look good you, you should let me have it YOU: no thanks THEM: you can have the rest of the stuff YOU: i cannot give up the hat. no deal THEM: but i want to be a redora wearing neckbeard YOU: no deal THEM: ok no deal YOU: no deal.
Output: | No |
Instructions: The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy.
Input: If you ask women why they did a good job, what they'll say is someone helped them, they got lucky, they worked really hard.
Output: | Kada pitate žene zašto su dobro odradile posao, ono što će reći jest da im je netko pomogao, da su imale sreće, da su radile doista naporno. |
Teacher: Given a prompt and two completions from a language model, select the completion that is the most fluent with respect to continuing the prompt. Fluency is defined by coherency and ease of understanding, not necessarily grammatical correctness. Generate either Completion A or Completion B.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Prompt: Im 99 percent sure it was someone being an
Completion A: accomplice , or maybe just plain old con man . whatever it was , it 's over . "
Completion B: asshole, your right?) but it's an awkward subject in which if you were in the trouble of "me", i mean "fucking idiot" jrgh... i dunno...I guess you are (in a legal context) not a stupid
Solution: Completion A
Reason: This prompt-completion pair is more fluent because it is more easy to follow and is a realistic statement.
Now, solve this instance: Prompt: lol mane nun trippin of theze hoez OG she said she'll fuck my nigga
Completion A: out of every nigga's heart for a lil while bc if she does then she's outta the world OG she's a bitch. I'm
Completion B: , and u can do it if u want tho! - December 15, 2014I'm going to keep calling out that thee shit's rea
Student: | Completion A |
Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone.
A large group of friends and myself got together for a barbecue. It is rare that we can all get together at the same time. We usually can only get together in small bunches with one to three of us missing so it is a great time when we all can get together. We went to one of our friends houses and hung out in their back yard next to their pool. We spent most of the time talking and playing a few board or card games, just catching up. It was overall sunny and good weather outside, a little hotter than some of use like. The friend whose house it was bought hamburger, hot dogs, sausage and chicken to cook on their grill. A few of use also brought a lot of other food and things with them. Some brought soda, drinks and ice others brought side dishes. I brought a few things and made a dessert. We ended up spending most of the day and part of the night together and went home close to 11 that night. It was a good time and fun catching up with everyone together. A lot of us made plans for the next meet up since some of use enjoy different hobbies than others. Myself and a group made plans to go hiking the following weekend. We also made a few plans to meet up for lunch and play games during the week. | retold |
Teacher: 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".
Teacher: Now, understand the problem? If you are still confused, see the following example:
14/25/1405
Solution: 0
Reason: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12.
Now, solve this instance: 06/12/1861
Student: | 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.
[Q]: x = 5, equation weights = [2, 4]
[A]: 14
[Q]: x = 7, equation weights = [8, 1, 2, 9]
[A]: 2816
[Q]: x = 10, equation weights = [1, 3, 5, 6]
[A]: | 1356
|
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
Q: You got this !
A: no
****
Q: There you can offer to do something and make 5 dollars if someone decides to hire you .
A: no
****
Q: Then if she asks , you can say you are willing to share your opinion if desired .
A: | yes
****
|
TASK DEFINITION: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the alphabetical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no alphabetical element is in the list.
PROBLEM: ['4277', 'u', 'C']
SOLUTION: 2, 3
PROBLEM: ['8549', 'r', '9929', 'X', 'Z', '6543']
SOLUTION: 2, 4, 5
PROBLEM: ['O', '5813', '2275', '8023', '9721', '4751', 'i', '6173', '6205', '2713', '4965', 'o', 'W', 'y', 'C', '2803', '5119', 'g', 'G']
SOLUTION: | 1, 7, 12, 13, 14, 15, 18, 19
|
instruction:
In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively.
question:
cnljeDAXFrOaZ
answer:
r
question:
fYbMgXawdF
answer:
w
question:
RsOHGc
answer:
| s
|
In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list.
[5, 3, 4, 5, 6, 2]
[3, 4, 6, 2]
[2, 7, 3, 0, 6, 7, 7, 7]
[2, 3, 0, 6]
[0, 5, 4, 0, 1, 6, 1]
| [5, 4, 6]
|
Q: For the given English description, write an SQL command such that it accomplishes every step. 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.
Did M0 's cinematographer , art director , director , and star direct M1 , M2 , M3 , and M4
A: | SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.director.film M0 .
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.director.film M3 .
?x0 ns:film.director.film M4 .
?x0 ns:film.film_art_director.films_art_directed M0
} |
In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy".
04/05/1894, input_format=mm/dd/yyyy
05/04/1894
26/11/1792, input_format=dd/mm/yyyy
11/26/1792
11/04/2004, input_format=mm/dd/yyyy
| 04/11/2004
|
Instructions: Find the movie name from the given conversation. If the movie name is not found give output as "unknown"
Input: ASSISTANT: What type of movies do you like? , USER: I like movies that are kind of artsy. For example The Grand Budapest Hotel is one of my favorite movies. I like movies that have a good plot and a unique story.
Output: | The Grand Budapest Hotel |
Definition: Indicate if the following Polish tweet contains cyber-bullying content with 'Yes'; otherwise, respond with 'No'.
Input: Tweet: @anonymized_account Jakieś kwoty znane czy ściśle tajne? , Question: Does the tweet contain cyberbullying (harmful) content?
Output: | No |
Please answer the following question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.duckduckgo.mobile.android.
A: | Duckduck duck go Excellent |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a list of numbers and you need to find the mean (average) of that list. The mean of a list can be found by summing every number in the list then dividing the result by the size of that list. The output should be rounded to 3 decimal places.
[1,3,5]
Solution: 3.000
Why? The mean of the input list is (1+3+5)/3, which equals 3. This is a good example.
New input: [-37.419, -54.704, 99.937]
Solution: | 2.605 |
You will be given a definition of a task first, then some input of the task.
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
THEM: i want the balls and hat. YOU: i can give you the hat and one ball, and i will take just the book and 2 balls THEM: give me the balls and you can take the rest. YOU: that is fine.
Output: | Yes |
Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'.
Example: Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat .
Example solution: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O)
Example explanation: We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence.
Problem: L' incendi s' ha declarat a les 15:55 hores i s' ha perllongat durant dues hores .
| Solution: L' (O) incendi (O) s' (O) ha (O) declarat (O) a (O) les (O) 15:55 (O) hores (O) i (O) s' (O) ha (O) perllongat (O) durant (O) dues (O) hores (O) . (O) |
In this task, you are given an english sentence and a kurdish sentence you have to determine if they both are faithful translations of each other.
Construct an answer that is 'Yes' if the second 'Kurdish' sentence is a translation of 'English' sentence and 'No' otherwise
Q: 'English : 3 of the cases have occurred on the street, 1 case in the workplace, 1 other in a shopping store and 1 in public transportation.','Kurdish : Ji sedî 66ê jinên destdirêjî lê hatîn kirin mêrên nenasên wan destdirêjî li wan kiriye. Mêrên ne nasên 6 jinan, midûrê dibistanekê, dersdarê zanîngehekê, hevkarekê jinekê destdirêjî lê kiriye.'
A: No
****
Q: 'English : “Every MP entering the cabin knew that they would be declared traitor”','Kurdish : ‘Eger wekîlek têketa kabînê dizanibû wê weke xayîn were îlankirin’'
A: Yes
****
Q: 'English : Following information included in the statement:','Kurdish : Di daxuyaniyê de wiha hat gotin:'
A: | Yes
****
|
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
--------
Question: [134, 1958, 1562, 4467, 17, 74, 4, 69, 1074, 3576, 4431, 20, 35, 3, 210]
Answer: [128, 2048, 2048, 4096, 16, 64, 4, 64, 1024, 4096, 4096, 16, 32, 4, 256]
Question: [55, 1920, 725, 2226, 9, 54, 3, 88]
Answer: [64, 2048, 512, 2048, 8, 64, 4, 64]
Question: [162, 122, 732, 2712, 18, 37, 4, 187, 1808, 3718, 1704]
Answer: | [128, 128, 512, 2048, 16, 32, 4, 128, 2048, 4096, 2048]
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:organization.organization.founders ?x1 .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M0 .
FILTER ( ?x1 != M0 )
} Question: What did M0 's spouse found
Student: | 1 |
instruction:
In this task, you are given a country name, and you need to return the year in which the country became independent. Independence is a nation's independence or statehood, usually after ceasing to be a group or part of another nation or state, or more rarely after the end of military occupation.
question:
Kazakstan
answer:
1991
question:
Iraq
answer:
1932
question:
Belgium
answer:
| 1830
|
Given the task definition and input, reply with output. In this task, you are given a string with duplicate characters ocurring in the string. You need to return the character which is ocurring with the maximum frequency. In case of a tie, return the character with the least ascii value.
klopxhkuknaqxhvtoiuorijxvdcmqyntkrripsxuqbkhkdck
| k |
Given the task definition and input, reply with output. The input contains texts obtained from news articles, ted talks, movie transcripts, radio transcripts, science and technology texts, and other short articles curated from the web and professional translators. Your task is to translate the given Yoruba sentence into the English language. Please bear in mind the following guidelines while doing the translation: 1) Generated output should be natural language and formal form of each sentence in your language. The output sentence should not be a colloquial form of the input sentence. The generated output should be in natural language 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) Numbers and fully capitalized words like SEPTEMBER, or 10 HOURS *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. 5) Note the input is in sentence case except for special placeholders. Please do the same in your translations.
Kò yẹ kí ẹ wà níbí
| You know you are not even supposed to be here |
Detailed Instructions: In medical studies, the efficacy of medical treatments (called interventions) is evaluated within a group of study participants. You will be given a sentence of a study report in which your task is to list the phrases that describe the intervention(s) of the study. You should list the phrase in the same order that they appear in the text, separated by commas. If no information about the interventions is mentioned, just answer with "not found". Interventions are: a specific drug, surgery, talking therapy, a lifestyle modification, control or placebo treatment. Do not include details, dosages, frequency and duration, intervention mentions that are not in an informative span of text.
Q: Aquatic exercise exceeded $ 50,000 per QALY gained using the community-weighted outcome but fell below this arbitrary budget constraint when using the participant-weighted measure .
A: | not found |
Definition: Given news headlines and an edited word. The original sentence has word within given format {word}. Create new headlines by replacing {word} in the original sentence with edit word. Classify news headlines into "Funny" and "Not Funny" that have been modified by humans using an edit word to make them funny.
Input: News Headline: DeVos Undoes Obama Student {Loan} Protections
Edit: Life
Output: | Funny |
Read the passage and find if the passage agrees, disagrees, or has a neutral stance on whether Global warming is caused by human activities. Answer only with keyword (a) agrees - if passage agrees with the target (b) disagrees - if passage disagrees with the target (c) neutral - if the given passage neither agrees nor disagrees with the target. You don't need to use external knowledge in this task, and you have to answer based on the given passage.
Q: The shoddy and absurd climate change plan.
A: | disagrees |
Given a prompt and two completions from a language model, select the completion that is the most fluent with respect to continuing the prompt. Fluency is defined by coherency and ease of understanding, not necessarily grammatical correctness. Generate either Completion A or Completion B.
Prompt: Thanks for the small flat rate priority boxes. I'll remember to use
Completion A: this when my next loan gets a lot of interest. Thanks to you the small rates are much lower than at many banks now, and it's also
Completion B: those for the other priority boxes. I'll also do the "first letter of the alphabet" priority. I've also put together my preferred priority bo | Completion A |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
bYubMFxyTqR, AcDbMFxSnI
Solution: bYubfmxyTqR, AcDbfmxSnI
Reason: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Now, solve this instance: iaPzPDbGlhfz, uNmQPDbGlhAvh
Student: | iaPzbdghlpfz, uNmQbdghlpAvh |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Example: The fact that you do not want to donate to these poor, needy people only shows me that you really do not care about the embryos
Example solution: Invalid
Example explanation: It is not an argument on the topic of death penalty.
Problem: There has been so much cases of people who have been executed, only to be found innocent after their death.
| Solution: Valid |
Q: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
THEM: can i get one ball and a book? YOU: i need the ball and both hats THEM: you can have everything except the ball YOU: without the ball there is no deal to be made THEM: same here YOU: no deal then THEM: nope YOU: no deal THEM: now what? lol YOU: keep typing eventually the no deal button will light up.
A: | No |
1. Fired up on Latin American myth, not afraid to ask children to engage with mortality, The Book of Life could work as a gateway drug to del Toro's Pan's Labyrinth.
2. Imagine a Tim Burton animation splashed with bold, bright colour and you'll have some idea of what to expect from Book of Life.
3. The animation is fresh, unique, and gorgeous. But we don't need another tale of a man having exciting adventures while a woman waits around to marry him.
4. Drawing on Mexican folklore and other Latin American traditions, Jorge R. Gutiérrez's version of death in his beautiful, witty 3D-animated debut The Book of Life is bursting with vibrant colours and magic -- a constantly expanding, neverending party.
5. It's refreshingly sparky fare, boasting eye-catching design (wooden toys inspire CG magic), musical weirdness (Radiohead will never sound the same again) and proper laugh-out-loud jokes for young and old alike.
6. Makes one realize just how homogenized, and even lazy, mainstream animated features have become--and how genuinely exciting it is to witness an artist confidently shatter barriers and boldly break new ground.
7. This colorful animated film celebrates the Mexican culture with a lot of pizzazz.
8. If you're after something decidedly unusual The Book Of Life is well worth checking out.
9. It's always worth applauding fresh ideas, especially those that might bridge cultural gaps and open the eyes and imaginations of children.
10. Gloriously vibrant and splashy - ghoulishly fanciful fun....
Consensus: The Book of Life's gorgeous animation is a treat, but it's a pity that its story lacks the same level of craft and detail that its thrilling visuals provide.
Q: 1. Tight as a drum and the most inventive spin on a zombie-plague premise in years.
2. With any luck, it will develop the cult it deserves because while its urgency makes it an easy target, Pontypool's new ideas are commendably gripping.
3. As a horror fan, this high-minded Talk Radio of the Living Dead left me as cold as a Pontypool winter.
4. Pontypool at least manages to amuse (a spur-of-the-moment on-air obituary is priceless) as well as consistently intrigue, right up to a bizarro post-credits epilogue that seems beamed in from Sin City.
5. A a genre-busting maverick of a movie, guarenteed to infuriate and astonish in equal numbers ... if you like your shocks laced with brain-teasing creepiness, Pontypool is the way to go.
6. Hemmed in by theatrically bound staging, "Pontypool" is an overly inflated zombie flick that makes overtures to a weighty theme of social consciousness that the screenwriters are ill-prepared to fulfill.
7. Think of this witty, economically gory little tour de force as 28 Days Later written by
linguist Noam Chomsky.
8. This is the sort of film that warrants a second viewing.
9. 'Pontypool' succeeds where many a less intelligent, purely visceral-visual movie leaves us cold.
10. McDonald propels things at a velocity that keeps you watching long after it's stopped making sense.
Based on these individual reviews, what is the critic consensus?
A: Consensus: Witty and restrained but still taut and funny, this Pontypool is a different breed of low-budget zombie film.
1. Even featuring an inferior 007, On Her Majesty's Secret Service is a landmark change-of-pace, and an exhilarating and affecting piece of entertainment.
2. Driven by a series of invigorating and breathtaking action sequences and anchored by a Bond of rare emotional depth.
3. Director Peter Hunt manages to inject some life into this 1969 exercise with a wonderful ski chase, but otherwise the film is a bore.
4. Film of break-neck physical excitement and stunning visual attractions in which George Lazenby replaced Sean Connery as James Bond.
5. Artistically, Bond's sixth entry, the only one to star Aussie George Lazenby, is much better than given credit to, though commercially it was one of the weakest.
6. Essential Bond viewing. It should definitely be among the five Bond films to make someone a fan of the series.
7. Besides not being a terribly good Bond entry, it's also a poorly made film.
8. [Concentrates] more on the man than the equipment.
9. Even hobbled as he is by a character he doesn't entirely get, and Peter Hunt's antagonistic direction, and the film's annoying tendency to remind us of Connery... George azenby puts up a good fight.
10. An odd interruption in the Bond canon that's neither an unsung masterpiece nor an unmitigated disaster. It's half terrific, half terrible -the former most often when George Lazenby shuts up and Peter Hunt's masterful action instincts take over.
Consensus: George Lazenby's only appearance as 007 is a fine entry in the series, featuring one of the most intriguing Bond girls in Tracy di Vincenzo (Diana Rigg), breathtaking visuals, and some great ski chases.
Q: 1. The effect is often soporific.
2. Previously, Anderson's films contained so many ideas they threatened to burst at the seams; with The Life Aquatic, it appears that's happened.
3. In the hands of less capable filmmakers this quirky fish tale might have sunk itself, but Murray and Anderson manage to reel it in.
4. The Life Aquatic with Steve Zissou is another playful tribute by Wes Anderson to a wacky individualist.
5. Wes Anderson follows Rushmore and The Royal Tenenbaums with ... the same film for the third time.
6. This wacky, wistful, occasionally humorous satire disappoints. Eccentrics afloat, it's an offbeat ship of fools.
7. Intermittently brilliant, intermittently hilarious -- and occasionally tedious.
8. Anderson may be incapable of making a dull film -- he's certainly incapable of making a dull-looking film -- and from its fake-docu introduction to its full-circle conclusion, his movie looks interesting and unique.
9. Forgetting to give any character a smidgen of emotion (it's funny because it's straight-faced!), this ends up a series of strange vignettes that you won't soon care about, either.
10. This is a leaky vessel sailing in circles, not the wonderful Life we were expecting.
Based on these individual reviews, what is the critic consensus?
A: Consensus: The Life Aquatic with Steve Zissou is getting soaked by many critics, who call it smug, ironic and artificial. Still, others have praised the movie's sheer uniqueness, eccentricity and whimsy.
1. An extremely silly Flashdance remake.
2. Honey isn't bad enough to be truly memorable.
3. Watching Honey is like having the fluids drained out of your system and replaced by a sugar-loaded, mixed-drink concoction of a color not found in nature.
4. Jessica Alba adds the soothing honey to Honey.
5. The mostly formulaic pieces come together thanks to a well-crafted youth-savvy script and likable cast of attractive performers.
6. Honey invites us, not to share in a character's journey, but to have an audience with one young woman's physical and spiritual loveliness. That's not just bogus, it's boring.
7. It's sweet, but that's not real honey you're tasting. It's more like saccharine.
8. Honey is a whole festival of bad movies, from Flashdance through Glitter.
9. Honey is naturally sweet, but a little sticky.
10. Yes, it's corny ... But Honey also makes a completely sincere and mostly successful attempt to be an old-fashioned movie of heart and decency, directed to a young hip-hop audience for whom such messages are rare.
| Consensus: An attractive Jessica Alba and energetic dance numbers provide some lift to this corny and formulaic movie. |
In this task, you're given a dialogue between a customer and a flight booking agent with a gap in the conversation. Your job is to find the answer of the previous dialogue. Avoid using irrelevant extra information while creating the answer. The answer should be relevant to the question before the blank. If you fill the blank with a question, it should have an answer from the agent in the given dialogue. Fill the gap marked with underline.
[Q]: customer: Hello.
agent: Hello, how can I aid you?
customer: I am a magician, I have to host a show at Philadelphia. Could you book my ticket from Denver?
agent: Sure, may I know your trip dates?
customer: My itinerary dates are Nov 21 and Nov 23.
agent: Can you please share your region airport codes?
customer: My genesis and terminus airport codes are DEN and PHL.
agent: Do you have any connection limit preference?
customer: No.
agent: Do you have any other specifications?
customer: I want to depart from Denver in the afternoon.
agent: Could you help me with your name please?
customer: Anthony Perez here.
agent: I found a connecting flight with Southwest Airlines and the airfare is about 100. Shall I proceed with flight 1013?
customer: Please proceed.
agent: For a economy class flight your ticket is booked.
__
agent: Thank you for reaching us.
[A]: customer: Thank you.
[Q]: customer: Hi. I am Daniel Allen.
agent: Hello, how can I help you?
customer: I would like to attend a meeting in National Center for Civil and Human Rights at Atlanta, ATL. Can you please help me in booking?
agent: Sure, please share me your travelling dates?
customer: My travel dates are from 05/04 to 05/06.
agent: Kindly assign me your origin code?
customer: My source is at CA-SFO.
agent: Please wait a minute.
customer: Ok.
__
customer: You can proceed with booking.
agent: Your ticket has been booked.
customer: Thank you for your help.
agent: Thank you for reaching us.
[A]: agent: We found 1008 AA airline with single connection and price of 100. Shall I proceed with it?
[Q]: customer: Hi.
agent: Hello, how may I help you today?
customer: Please make a reservation with the name of Linda Young from CLT.
agent: Sure, may I know your destination airport code?
customer: I am heading to SEA.
agent: May I know your trip dates?
customer: My trip dates are Aug 05 and Aug 07.
agent: Do you have any connection limit?
customer: I need a single connecting flight.
agent: May I know your arrival and depart timings?
customer: I am comfortable to travel at any time.
__
customer: No.
agent: Please be on hold.
customer: Sure.
agent: We found a connecting flight of fare 100 with airline Southwest and number is 1018. Can I reserve it?
customer: Ok, proceed with the booking.
agent: Your ticket has been confirmed.
customer: Thank you for the help.
agent: Thank you for opting us.
[A]: | agent: Do you have any other specifications?
|
Write an ordered list of reviews about "beverly hills cop 2". | 1. This ultraslick, laughless sequel suffers from Axel Foley's personality overhaul into a complete jerk.
2. Skip this one and go back to the first 'Cop.'
3. Perhaps the pinnacle of Eddie Murphy's career.
4. Fun sequel
5. Not as good as the original, but fast and funny enough to suffice fans
6. Been there and done that better.
7. The film seems... to be a precisely timed affair: so many seconds for this, so many for that, and the natural flow of the story be damned.
8. [Nothing] really, except a delivery system for Murphy. But Murphy in those days was appealing enough that this proves to be very nearly sufficient.
9. Pointless, hateful sequel.
10. Not quite as frenetically fun as the original, but Murphy still works his game. |
Detailed Instructions: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
Q: bedless
A: | bedded |
Q: You are given a statement written in Hindi. Choose the most logical word from the given 4 options which can be used to replace the <MASK> token in the statement. Output the word from the correct option .
Statement: विधिकार के लिए यह आवश्यक प्रतीत होता है कि वह दैवी रूप से अनुप्राणित हो। हम्मूराबी (Hammurabi) की संहिता के आरंभ में यह घोषणा की गई है कि देव मरदुक (God Marduk) ने उसे न्याय के सिद्धांतों को जनता को देने का आदेश दिया। सुमेरिया के उरुकगीना (Urukagina) ने निनगिरूस (Ningirusu) से विधि ज्ञान पाया था। हजरत मूसा ने ईश्वर की प्रेरणा से न्याय के दस निदेशों (Ten commandments) की रचना की। एथेना नामक <MASK> देवता ने जैल्युकस (Zaleucus) को स्वप्न में विधि का ज्ञान दिया। कुछ स्थानों में विधिकार स्वयं कोई देवता अथवा देवतुल्य ऋषि माना जाता है।
Option A: जापान
Option B: संसद
Option C: फ्रांस
Option D: यूनानी
A: | यूनानी |
Detailed Instructions: Given a sentence in Japanese, provide an equivalent paraphrased translation in Chinese that retains the same meaning both through the translation and the paraphrase.
Problem:同所性捕食者は、マウンテンライオン、アメリカのツキノワグマとハイイログマを含みます。
Solution: | Sympatric - 食肉动物包括山狮,美洲黑熊和灰熊。 |
Subsets and Splits