prompt
stringlengths
98
11.7k
response
stringlengths
1
1.45k
Given the task definition and input, reply with output. In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Northern Mariana Islands
.mp
Given the task definition, example input & output, solve the new input case. Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Example: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won`t make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can`t do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal. Output: No Both participants do not agree to the deal, so the answer is No. New input case for you: THEM: i'd like the hat and ball. YOU: you got it! Output:
No
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Problem:Which room has the highest base price? Solution:
SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1
Given the task definition, example input & output, solve the new input case. Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc. Example: Sentence: Jack played basketball after school, after which he was very tired. Question: How long did Jack play basketball? Category: Event Duration. Output: Yes. The question asks about the duration of playing basketball, therefore it's a "event duration" question. New input case for you: Sentence: In the end , they drive off , listening to the radio . Question: What time did they stop driving for a lunch break? Category: Absolute Timepoint. Output:
Yes.
Detailed Instructions: 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. Q: News Headline: Community banks file {lawsuit} against Equifax Edit: Nails A:
Not Funny
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Input: Consider Input: THEM: i'll take two books and a ball if that works for you? YOU: deal. Output: Yes Input: Consider Input: THEM: i want three hats and one ball please YOU: sorry, i need 3 hats and one book or ball THEM: no then we need to share i can take 2 hats and 1 book and 1 ball? YOU: that`s not fair sharing THEM: well give me three hats and take the rest then YOU: that`s 4 points for me. totally not fair THEM: its same for me i don't have any use for it as well then no deal i guess YOU: then no deal sorry. Output: No Input: Consider Input: THEM: i need the balls, the rest to you YOU: i would liek one ball THEM: okay, one ball to you, i'll take two balls and the book YOU: they are all worth 2 points for me. i need 3 things in total. THEM: okay, you can have one of each YOU: great. thank you.
Output: Yes
Detailed Instructions: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. See one example below: Problem: x = 3, equation weights = [4, 2] Solution: 14 Explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14. Problem: x = 0, equation weights = [3, 9, 0] Solution:
0
In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list. Example Input: [6, 3, 3, 0, 0, 3] Example Output: [6] Example Input: [3, 2, 0, 5, 0, 5, 2, 0, 1, 2] Example Output: [3, 1] Example Input: [1, 6, 5, 5, 1, 6, 0, 0] Example Output:
[]
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. -------- Question: Set1: '{3, 4, 8, 11, 13, 16, 20}', Set2: '{3}'. How many elements are there in the union of Set1 and Set2 ? Answer: 7 Question: Set1: '{5, 8, 9, 12, 16, 17, 19}', Set2: '{10, 15}'. How many elements are there in the union of Set1 and Set2 ? Answer: 9 Question: Set1: '{1, 3, 5, 6, 9, 11, 15, 17, 19}', Set2: '{18, 20, 13}'. How many elements are there in the union of Set1 and Set2 ? Answer:
12
Definition: Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise Input: The site collects your IP address or device IDs for an unspecified purpose. Collection happens when you implicitly provide information in an unspecified way for a user type outside of our label scheme, and your data is aggregated or anonymized. Output:
Unspecified
Given the task definition and input, reply with output. The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations. muéstreme restaurantes "mexican" de 5 estrellas
show me 5 star " mexican " restaurants
Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase. One example: 1975 년부터 76 년까지 NBA 시즌은 전국 농구 협회 (National Basketball Association)의 30 번째 시즌이었다. Solution is here: La saison 1975-1976 de la National Basketball Association était la 30e saison de la NBA. Explanation: This is a correct and accurate translation from Korean to French because the translated paraphrase retains the main message that between the years 1975-1976, the 30th NBA season occurred. Now, solve this: Zrinski와 Frankopan의 뼈는 1907 년 오스트리아에서 발견되어 1919 년 자그레브 성당으로 옮겨져 자그레브 대성당에서 재건되었습니다. Solution:
Les os de Zrinski et de Frankopan ont été retrouvés en 1907 en Autriche et apportés à Zagreb en 1919, où ils ont été reconstruits dans la cathédrale de Zagreb.
Instructions: In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. Input: vtvkvkvvttv Output:
vkvkv
In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation. Let me give you an example: Angola The answer to this example can be: Republic Here is why: Republic is the government type of the country called Angola. OK. solve this: Yugoslavia Answer:
Federal Republic
Definition: 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. Input: x = 3, equation weights = [3, 5, 9] Output:
51
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Q: For each zip code, return how many times max wind speed reached 25? A:
SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code
Detailed Instructions: 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. Q: RsOHGc A:
s
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 [72, 36, 69, 43, 88, 14, 49, 82, 83, 26] 2 [32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 98, 101] 1 [115, 108, 101, 94, 87, 80, 73, 66, 59, 52, 45, 38, 31, 24]
1
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy. [Q]: I call it complacency -- our complacency. [A]: Zove se samozadovoljstvo -- naše samozadovoljstvo. [Q]: Evolution is all about passing on the genome to the next generation, adapting and surviving through generation after generation. [A]: Evolucija samo želi prenijeti genom na slijedeću generaciju, adaptirajući se i preživljavajući iz generacije u generaciju. [Q]: But as I was traveling here, you'll be very happy to know, I did use my white symbol stick cane, because it's really good to skip queues in the airport. [A]:
Ali putovala sam ovamo, bit ćete sretni što čujete ovo, koristila sam se svojim štapom za slijepe osobe, zbog toga što je stvarno dobro izbjeći gužve u zračnoj luci.
Detailed Instructions: Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story. Problem:Premise: Paul played a CD of Broadway musicals in his car stereo. Initial Context: When he came to a red light people began to look at him. Original Ending: They heard the show tunes and laughed at the absurdity of it. Paul was not ashamed of his musical tastes. To defy their laughter, Paul sang along with the CD as he drove away. Counterfactual Context: He kept the windows closed so no one would hear. Solution:
At a red light, people watched him dance as he sang and they laughed at the absurdity of it. Paul was not ashamed of his dancing. To defy their laughter, Paul danced and sang along with the CD as he drove away.
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below: Tense: The verbs in the sentence are changed in tense. Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around. Voice: If the verbs are in active voice, they're changed to passive or the other way around. Adverb: The paraphrase has one adverb or more than the original sentence. Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns. Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym. original sentence: It was a summer afternoon , and the dog was sitting in the middle of the lawn . After a while , it got up and moved to a spot under the tree , because it was hot . paraphrase: It was a summer afternoon , and the dog was lazily sitting in the middle of the lawn . After a while , it slowly got up and moved to a spot under the tree , because it was hot . Adverb original sentence: Madonna fired her trainer because she couldn't stand her boyfriend . paraphrase: Madonna angrily fired her trainer because she couldn't stand her boyfriend . Adverb original sentence: Susan knew that Ann's son had been in a car accident , because she told her about it . paraphrase: It was known by Susan that Ann's son had been in a car accident , because she told her about it .
Voice
This task is to find the number of 'For' loops present in the given cpp program. -------- Question: int w=1; int f(int x) { int z=1,y,v=0; for(y=w+1;y<=sqrt(x);y++) { if(x%y==0) { z=z+f(x/y); v++; w=y; } } if(v==0) z=1; return z; } main() { int n,u=0,a; scanf("%d",&n); do { scanf("%d",&a); printf("%d\n",f(a)); u++; w=1; } while(u!=n); } Answer: 1 Question: void main() { int n,a[100],i; void fen(int a[],int x); scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } fen(a,n); } void fen(int a[],int x) { int k,b=2,c,t; int look(int x,int y); for(k=0;k<x;k++) { c=a[k]; t=look(c,b); printf("%d\n",t); } } int look(int x,int y) { int total=1,p; if(x/y==0) { return 0;} else { for(p=y;p<x;p++) { if(x%p==0) { total=total+look(x/p,p); } } } return total; } Answer: 3 Question: int calc(int p,int t); int main() { int m,n,ans; scanf("%d",&m); while (m--) { scanf("%d",&n); ans=calc(2,n); printf("%d\n",ans); } return 0; } int calc(int p,int t) { int i,a; a=1; for (i=p;i<=sqrt(t);i++) if (t%i==0) a=a+calc(i,t/i); return a; } Answer:
1
Q: Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation. SENDER A: hi there SENDER A: i just bought my first home and would be glad to see you there SENDER A: cause i already have a children in the basement SENDER A: that might sounds rough but i am an omnivore SENDER A: i am expecting twins in two months i ordered on ebay with cashback A:
Human
Teacher: 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. Teacher: Now, understand the problem? If you are still confused, see the following example: aBxyZde Solution: y Reason: y has the maximum ascii value in the given string. Now, solve this instance: haceGYvPwAKESgNdVqs Student:
w
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'. Ex Input: Wright was born April 8, 1966, in Dallas to Gayle, a cosmetics saleswoman for Mary Kay, and Fred Wright, a pharmaceutical company employee Ex Output: April 8, 1966 Ex Input: Foster was born on November 19, 1962 in Los Angeles, the youngest child of Evelyn Ella ("Brandy"; née Almond) and Lucius Fisher Foster III Ex Output: November 19, 1962 Ex Input: Clive Owen was born on 3 October 1964 in Keresley, Coventry (then in Warwickshire), the fourth of five sons born to Pamela (née Cotton) and Jess Owen Ex Output:
3 October 1964
Part 1. 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. Part 2. Example News Headline: France is ‘ hunting down its citizens who joined {Isis} without trial in Iraq Edit: twins Answer: Not Funny Explanation: The edited sentence is not making much sense, therefore it's not funny. Part 3. Exercise News Headline: {New Yorker} fires Ryan Lizza over alleged ' improper sexual conduct ' Edit: hippo Answer:
Funny
Q: 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 7902 # 8518 # 4189 # 8877 @ 2105 # 8578 # 1978 @ 3285 A:
-18848
Definition: Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red. Input: weird Output:
strange
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task. 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. password = a Solution: 5 Why? Using 5 steps, it can become a strong password New input: password = P Solution:
5
Detailed Instructions: 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: [26, 12, 54, 82, 85, 23, 51, 88, 60, 11] A:
2
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Example Input: [736, 726, 61, 80, 815, 419, 433, 977, 463, 823, 331, 82, 113, 37, 937, 97] Example Output: [61, 419, 433, 977, 463, 823, 331, 113, 37, 937, 97] Example Input: [142, 269, 33, 912, 908, 784, 414, 883, 337, 582, 727] Example Output: [269, 883, 337, 727] Example Input: [323, 37, 457] Example Output:
[37, 457]
Part 1. Definition In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals. Part 2. Example [1, 2, 3] Answer: [0.167, 0.333, 0.500] Explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example. Part 3. Exercise [142.503, 39.516, 192.902, 19.875, 129.438, 72.169, 43.411, 151.433, 105.703] Answer:
[0.159 0.044 0.215 0.022 0.144 0.08 0.048 0.169 0.118]
input question: Generate a 3-star review (1 being lowest and 5 being highest) about an app with package org.geometerplus.zlibrary.ui.android.??? output answer: Add features for left handed people The page doesn't turn when I press the left or centre of the page.It only turns when the eight hand screen is touched.Its bane for a left handed person.Plus the in my android 5.0.2;I can't see the default home or back option.It is only visible when I drag it from up.There's also an issue of the reset position i.e.the page no. to pop up when I press d centre of the screen. Please if u could change the interface so that wherever I touch would change the page; would be grt. input question: Generate a 1-star review (1 being lowest and 5 being highest) about an app with package com.reicast.emulator.??? output answer: Dreamcast Creatures input question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.??? output answer: Gee not cool 1 hr.no music or loged in input question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package ch.blinkenlights.android.vanilla.??? output answer:
Sweet open source. No ads w00t!
Given the task definition, example input & output, solve the new input case. Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Example: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won`t make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can`t do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal. Output: No Both participants do not agree to the deal, so the answer is No. New input case for you: THEM: hello, ranger. what would you like in order to help defend angel grove from rita? YOU: i need the book and ball THEM: ranger. i'm sorry. i can't do this deal. it seems you are working on more than one hit at a time and that slows this down. Output:
No
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Problem:Count the number of actors. Solution:
SELECT count(*) FROM actor
You will be given a definition of a task first, then some input of the task. In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. টয়া একটা পতিতা,কনডম কন্যা Output:
non-religious
Detailed Instructions: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'. See one example below: Problem: twotwoonesixzeronine Solution: 221609 Explanation: The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example. Problem: eightninetwofiveonefourninefourzeroeighttwothree Solution:
892514940823
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]: [181, 171, 161, 151, 141, 131, 121, 111, 101, 91, 81, 71, 61, 51, 41, 31] [A]: 1 [Q]: [20, 89, 21, 29, 34, 39, 61, 78, 27, 69] [A]: 2 [Q]: [179, 173, 167, 161, 155, 149, 143, 137, 131, 125, 119, 113, 107, 101, 95, 89, 83, 77, 71, 65, 59, 53, 47, 41, 35] [A]:
1
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Q: The additional finding of extensive resorption of the outer cortical surface and bone formation at the inner surface suggested a reversible phase after discontinuation of treatment. A:
non-adverse drug event
Detailed Instructions: 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. Problem:[11, 347, 3315, 2958] Solution:
[8, 256, 4096, 2048]
Detailed Instructions: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative. Q: Islands, das ruhigste Werk . "Islands" ist wohl eines der umstrittensten Werke von King Crimson. Bei nicht wenigen KC-Fans rangiert es ganz unten auf der Beliebtheitsskala. "Islands" ein ungewöhnlich ruhiges, geradezu zerbrechlich wirkendes Album, seine "radikale Stille" ist sicherlich nicht jedermanns Sache. Es gibt einige starke Kompositionen und einige, die wirklich banal sind. Das Album ist ruhig, trotzdem gelegentlich brachial. A:
NEG
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. Let me give you an example: Angola The answer to this example can be: 1975 Here is why: 1975 is the year of independence of Angola. OK. solve this: Romania Answer:
1878
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. [EX Q]: Schadenersatz . Der geneigte Leser sei gewarnt: Graffiti Soul kann leider in keiner Weise an das letzte Album "Black &amp; White" anknüpfen. Die hymnischen Bewertungen sind wohl mehr Fan-Reaktionen. Einzies Highlight ist das Anfangsstück "Moskow Underground", das von der Klasse her auch dort hineingepaßt hätte. Der Rest ist eher langweilig: Die Stücke jonglieren mit Midi-Sounds und typischen Stadion-Rhythmen der schlimmen und einfachen Gemüter aus den 80er und 90er Jahren. Peinlicher Endpunkt ist "Rockin In The Free World" die einen Neil Young zum Schadenersatz herausfordern sollte. Schade, die guten Reputationen nach "Black &amp; White" sind durch "Graffiti Soul" wieder dahin. [EX A]: NEG [EX Q]: ..zu sich selbst gefunden, leider! . Naja, jetzt ist's halt Musik die man von einer 19jährigen erwartet, wenn sie "ihren eigenen Weg" geht! Schade. [EX A]: NEG [EX Q]: Bass-driven Funky Acid Jazz . Der Soundtrack hat mega groove, David holmes, der die meisten Songs geschrieben hat es geschafft dem Film ein irres tempo zu verleihen. Die songs sind überwiegend durch einen super-funkigen bass geprägt, der sehr gut zu samplen ist. Bei diesen Nummern möchte man am liebsten gleich ein Casino ausrauben, weil man einfach nicht still sitzen bleiben kann. [EX A]:
POS
Teacher: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks. Teacher: Now, understand the problem? If you are still confused, see the following example: Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) . Word: ( Solution: -LRB- Reason: "(" is the symbol for Left Parantheses (-LRB-). Now, solve this instance: Sentence: Please let us know if you {{ have }} additional questions . Word: have Student:
VBP
Teacher:Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red. Teacher: Now, understand the problem? Solve this instance: seam Student:
join
Q: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks. Sentence: I just found {{ out }} that I need to take the TX driver s exam both written and on the rode . Word: out A:
RP
You will be given a definition of a task first, then some input of the task. 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. Argentina Output:
1816
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program. Q: int f(int x,int y) //???????????????y?????????x???????? {int i,num=0; int a[100]; int sum=0; for(i=x;i<=sqrt(y);i++){ if(y%i==0) {num++;a[num]=1+f(i,y/i);}} //?????? for(i=1;i<=num;i++) {sum=sum+a[i];} return sum; } int main(){ int n,x,i,b[100]; cin>>n; //????????? for(i=1;i<=n;i++){cin>>x;b[i]=x;} for(i=1;i<=n;i++){cout<<f(2,b[i])+1<<endl;} //??????? return 0; } A:
4
Teacher: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Teacher: Now, understand the problem? If you are still confused, see the following example: able Solution: unable Reason: The output is correct as able and unable are opposities of each other in meaning. Now, solve this instance: cyclic Student:
acyclic
Q: 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'. En aquesta bustiada també es demana la col·laboració ciutadana per a evitar que les deixalles s' acumulin al carrer i s' informa que la vaga no afectarà la recollida selectiva . A:
En (O) aquesta (O) bustiada (O) també (O) es (O) demana (O) la (O) col·laboració (O) ciutadana (O) per (O) a (O) evitar (O) que (O) les (O) deixalles (O) s' (O) acumulin (O) al (O) carrer (O) i (O) s' (O) informa (O) que (O) la (O) vaga (O) no (O) afectarà (O) la (O) recollida (O) selectiva (O) . (O)
Teacher: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. Teacher: Now, understand the problem? Solve this instance: Schlechteste Folge . Ich bezeichne mich selbst schon als "abgehärtet", mit den meisten Folgen gehe ich nicht ganz so kritisch um, da ich weiß, dass die Geschichten in erster Linie noch für jüngere Menschen sind. Aber (!) diese Folge hat mir tatsächlich den Atem geraubt - so schlecht war sie. Die Geschichte um eine Art MMORPG (massiv mulitplayer online role-play game) ist ansich gar nicht schlecht, die Sache mit den Brillen ist mir jedoch noch ein bisschen zu futuristisch. Dann ist es einfach nicht sonderlich spannend, den drei Fragezeichen zu zu hören, wie sie ein Computerspiel spielen. Eine echte Gefahr kommt in diesem nämlich nicht auf. Man weiß auch genau, wie es Enden wird und das nimmt der Story das bisschen Spannung. Manch einer mag es als "Neuerung" ansehen, dass man hier quasi eine Geschichte hat, die mal etwas neues bietet, allerding ist dies derart schlecht umgesetzt, dass ich mich gefragt habe, ob dies überhaupt noch als "Detektivgeschichte" zu bezeichnen ist. Auch die eigentlich nicht schlechte Story um das Spiel und die Finanzierung wird durch das Spiel und seine Umsetzung sehr in Mittleidenschaft gezogen. Einzig die Musik ist gut. Student:
NEG
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. [EX Q]: Captopril-associated "pseudocholangitis'. [EX A]: adverse drug event [EX Q]: This case and the brief review of the literature which follows emphasize the danger of prednisone administration in patients who have asthma and a history of drug intolerance. [EX A]: non-adverse drug event [EX Q]: Both premortem and postmortem bone marrow sampling revealed almost complete replacement of the marrow space by sheets of histiocytes demonstrating metachromatic cytoplasmic granules. [EX A]:
non-adverse drug event
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Problem:What are the id and name of the stations that have ever had more than 12 bikes available? Solution:
SELECT DISTINCT T1.id , T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12
Detailed Instructions: In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. See one example below: Problem: gocogccocco Solution: gocog Explanation: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example. Problem: zzzfzkkkfffz Solution:
zzz
In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer: name: The Eagle,... eatType: restaurant, coffee shop,... food: French, Italian,... priceRange: cheap, expensive,... customerRating: 1 of 5 (low), 4 of 5 (high) area: riverside, city center, ... familyFriendly: Yes / No near: Panda Express,... The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect. There is a pub named The Plough located near Café Rouge that is kid friendly and offers Italian food at a price range between £20 to £25.
name[The Plough], eatType[pub], food[Italian], priceRange[£20-25], familyFriendly[yes], near[Café Rouge]
instruction: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?" question: Fact: The leg straightens when muscle fibers get shorter. answer: What happens to your leg when muscle fibers shorten? question: Fact: surfaces rubbing together causes an object to lose energy. answer: what causes an object to lose energy? question: Fact: Urine is the waste product in the bladder that is excreted by the urinary system. answer:
Urine is a product of what organ of the body that is excreted by the urinary system?
instruction: 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. question: Seid doch mal ehrlich -&gt; langweilig ! . Ich bin ein Pearl Jam Fan der erstern Stunde, hatte bis zur Riot Act alle Platten von Pearl Jam gekauft und Ten, VS und Yield gehören für mich zu den besten Platten überhaupt. Aber wenn man so ein großer Fan ist wie ich es bin tendiert man dazu, alles gut zu finden. Ich habe das Gefühl das es so manchem der hier seine Kritik mit 5 Sternen vergibt ähnlich geht. Nach dem die beiden letzten Pearl Jam Studio-Scheiben meiner Meinung nach einem Total-Ausfall gleichkamen, bin ich jetzt etwas vorsichtiger mit dem Kauf und ich muß sagen zum Glück. Diese ganze Platte hört sich für mich an wie eine Kopie von der "Lost Dogs" Pearl Jam Scheibe auf der viele ähnlich Balladen (vor allem B-Sides) drauf sind. Für mich Lichtjahre vom möglichen entfernt (bei dem Potenzial). Schade auch das Eddie es sich in den letzten Jahren angewöhnt hat mit halb offenem Mund zu singen. Das hört sich dann für mich immer sehr gleichgültig an. Ich bin wirklich keiner von denen die immer am alten Zeug hängen bleiben, aber diese Platte ist wirklich langweilig. answer: NEG question: Unglaublich schön! . Einfach eine tolle Cd, auch für die Menschen die sonst dieses Musik überhaupt nicht hören! Ich selbst höre sonst eigentlich Gabber (was viele ja noch nicht einmal als Musik bezeichnen) und war von dem Film und der Cd so überwältigt. Einfach Klasse! answer: POS question: Copy Controlled . Nikka Costa hat hier ein tolles Album abgeliefert, welches ich mit 4 bis 5 Sternen bewerte würde wenn es nicht ein Problem gäbe: Die CD ist Kopiergeschützt &gt; daher KEINE Kaufempfehlung! answer:
NEG
Given the task definition and input, reply with output. 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. god has the authority and ability to voluntarily pardon a wrong, as a banker could write-off a debt.
Invalid
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? Solve this instance: 18/40/1902 Student:
0
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: What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8? answer: SELECT f_id FROM song WHERE resolution > (SELECT max(resolution) FROM song WHERE rating < 8) question: List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities. answer: SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services' question: Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000. answer:
SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased) > 50000 OR avg(total_amount_purchased) < 30000
Part 1. Definition This task is to find the number of 'For' loops present in the given cpp program. Part 2. Example main() { float a[4]; float k; float c; int i; for(i=0;i<4;i++) { scanf("%f",&a[i]); } scanf("%f",&c); c=2*3.1415926*c/360; k=(a[0]+a[1]+a[2]+a[3])/2; double s,sq; sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2); if(sq<0) printf("Invalid input"); else { s=sqrt(sq); printf("%.4f",s); } } Answer: 1 Explanation: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example. Part 3. Exercise void main() { int f(int ,int ); int n[100],sum,i,m; scanf("%d",&m); for(i=0;i<m;i++) scanf("%d",&n[i]); for(i=0;i<m;i++) { sum=f(1,n[i])+1; printf("%d\n",sum); } } int f(int i,int n) { int j,k,sum=0; for(j=i;j<(int)sqrt((double)n)+1;j++) { k=sum; if(j==1)sum=0; else { if(n%j==0&&n/j>=j) { sum=f(j,n/j)+1; } else sum=0; } sum=sum+k; } return(sum); } Answer:
3
instruction: 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. question: News Headline: Trump and Obama have the same approval rating after their first {year} , at least according to one poll Edit: dance answer: Funny question: News Headline: Trump ’s Pick For {Agriculture} Secretary Is A Climate Denier , Too Edit: fiction answer: Funny question: News Headline: Theresa May orders biggest expulsion of Russian {spies} in 30 years in response to Salisbury poisoning Edit: students answer:
Not Funny
instruction: 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. question: [3, 8, 10, 3, 10, 4, 10] , [9, 3, 9, 3, 10, 5, 7] answer: [3, 10] question: [2, 10, 7, 7, 4] , [3, 7, 3, 4, 7] answer: [4, 7] question: [9, 4, 8, 4, 7, 6] , [4, 5, 1, 5, 2, 10] answer:
[4]
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. Q: Set1: '{1, 6, 8, 9, 12, 13, 14, 15}', Set2: '{5, 6, 15}'. How many elements are there in the union of Set1 and Set2 ? A:
9
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. Ex Input: Instead of it being the case that that junction box in the spinal cord is just simple where one nerve connects with the next nerve by releasing these little brown packets of chemical information called neurotransmitters in a linear one-on-one fashion, in fact, what happens is the neurotransmitters spill out in three dimensions -- laterally, vertically, up and down in the spinal cord -- and they start interacting with other adjacent cells. Ex Output: Umjesto toga da je razvodna kutija u leđnoj moždini samo jednostavno mjesto gdje se jedan živac povezuje s drugim oslobađanjem malih smeđih paketa kemijskih informacija zvanih neurotransmiteri na linearan jedan na jedan način, ono što se zapravo događa je da se neurotransmiteri prospu u tri dimenzije -- bočno, okomito, gore i dolje u leđnoj moždini -- i počnu međudjelovati s drugim susjednim stanicama. Ex Input: But those shoes came with round nylon laces, and I couldn't keep them tied. Ex Output: I te cipele su došle u paketu s okruglim vezicama od najlona, i nisam ih mogao zadržati zavezanima. Ex Input: When the vice president for health care quality at Beth Israel spoke about this incident, he said something very interesting. Ex Output:
Kada je zamjenik predsjednika za kvalitetu zdravstvene skrbi u bolnici Beth Israel govorio o ovom incidentu rekao je nešto vrlo zanimljivo.
Part 1. Definition In this task, you are given a movie review in Persian, and you have to extract aspects of the movie mentioned in the text. We define aspects as music(موسیقی), directing(کارگردانی), screenplay/story(داستان), acting/performance(بازی), cinematography(فیلمبرداری), and scene(صحنه). Although there might be multiple aspects in a review, we only need you to write one aspect. Part 2. Example فیلم متوسطی بود از لحاظ داستان ولی خوشحالم که سینمای ایران یک نیم نگاهی به این قشر از جامعه مون کرد.نا گفته نماندگفتگو های پر تامل و تاثیرگذاری داشت با این حال امیدوارم که تماشاچیان عزیز در دام "خطالی عاطفی" نیوفتاده باشند. Answer: داستان Explanation: This is a good example. The review is about the story of the movie. Part 3. Exercise فیلمی اجتماعی ..... از درد ها و مشکلات موجود برای یک زن مثل خیلی از زن های مظلوم این کشور.....بازی ساره بیات مثل همیشه تحسین برانگیز بود.....ولی در کل مدت زمان فیلم خیلی طولانی بود و انسجام و تدوین بهتری را می طلبید.....در کل پیشنهاد می کنم حتما ببینید Answer:
بازی
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...'. Guilty. Of loving this show! Graduation approved. That's my boy up there. And I couldn't be prouder of him. You should have just told your daughter that the internet is only for the army and the phone company. I tried that, but at school she was told differently. Boy, they tell them everything at school. I saw him and then once I reached up and I held him, I felt like we had our own little love spaceship going up in the sky.
Yes, we did, and we got married right away. It was a busy day at Tommy Bahama.
Detailed Instructions: 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 = ZifZ A:
2
instruction: 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...'. question: There's a possum and part of a raccoon. answer: Let's take part of that raccoon, put some cheese on it, and double fry it! question: Well, how much change is in the cup holder? answer: I usually keep seventy five cents for emergencies. question: I'm starting to feel that we shouldn't have spent our Christmas Eve looking at a place we're going to be turning into something else, at the expense of others. answer:
You know what, sweetheart? You're right. We should have just come back when it was a Wal-mart.
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red. Example Input: jack Example Output: flag Example Input: center Example Output: place Example Input: citation Example Output:
rule
instruction: 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. question: News Headline: Trump ’s {Moore} endorsement sunk the presidency to unplumbed depths Edit: mongoose answer: Not Funny question: News Headline: Forced Transgender Boy Quickly Returns To Normal After Removal From Mother ’s {Care} Edit: nostril answer: Not Funny question: News Headline: Danish inventor confesses to {dismembering} journalist Kim Wall , police say Edit: inventing answer:
Not Funny
Given the task definition, example input & output, solve the new input case. 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. Example: [16, 205, 171, 2, 9, 317] Output: [16, 256, 128, 2, 8, 256] Every integer in the input list is rounded to the nearest power of 2. The number 2 and 16 are in the input list and both are a power of 2, therefore rounding to the closest power of 2 returns the same number. This is a good example. New input case for you: [221, 1863, 661, 4018, 10, 84, 2, 248, 871, 3604, 3013] Output:
[256, 2048, 512, 4096, 8, 64, 2, 256, 1024, 4096, 2048]
Teacher: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty. Teacher: Now, understand the problem? If you are still confused, see the following 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 Solution: Invalid Reason: It is not an argument on the topic of death penalty. Now, solve this instance: Hitler killed a whole race, you are basically saying you don't mind if we kill a bunch of innocent people as long as we get guilty people as well. Student:
Valid
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. Example Input: dUnpYTRrJNctfkHGmEAK Example Output: t Example Input: dyKzLalTo Example Output: z Example Input: LtzjqDkTZvF Example Output:
z
In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer: name: The Eagle,... eatType: restaurant, coffee shop,... food: French, Italian,... priceRange: cheap, expensive,... customerRating: 1 of 5 (low), 4 of 5 (high) area: riverside, city center, ... familyFriendly: Yes / No near: Panda Express,... The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect. -------- Question: Riverside coffee shop near Burger King, The Eagle, offers Japanese food and has a 3 out of 5 rating. It is not kid-friendly, but average price. Answer: name[The Eagle], eatType[coffee shop], food[Japanese], priceRange[£20-25], customer rating[3 out of 5], area[riverside], familyFriendly[no], near[Burger King] Question: Fitzbillies is an Italian coffee shop cheaply priced near the city Centre. It is not family-friendly and has a customer rating of 5 out of 5. Answer: name[Fitzbillies], eatType[coffee shop], food[Italian], priceRange[cheap], customer rating[5 out of 5], area[city centre], familyFriendly[no] Question: The Golden Curry is a medium priced sushi restaurant. It does not allow children and is located near to The Bakers. Answer:
name[The Golden Curry], food[Japanese], priceRange[moderate], familyFriendly[no], near[The Bakers]
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Hepatotoxicity induced by cyproterone acetate: a report of three cases. adverse drug event Clozapine is the least likely anti-psychotic to induce extrapyramidal symptoms (EPS). non-adverse drug event This avoids the need for bronchoscopic examination or transfer of the patient for computed tomography.
non-adverse drug event
Instructions: In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no". Here are the definitions of logical operators: 1. count: returns the number of rows in the view. 2. only: returns whether there is exactly one row in the view. 3. hop: returns the value under the header column of the row. 4. and: returns the boolean operation result of two arguments. 5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column. 6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column. 7. argmax/argmin: returns the row with the max/min value in header column. 8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column. 9. eq/not_eq: returns if the two arguments are equal. 10. round_eq: returns if the two arguments are roughly equal under certain tolerance. 11. greater/less: returns if the first argument is greater/less than the second argument. 12. diff: returns the difference between two arguments. 13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument. 14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument. 15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument. 16. filter_all: returns the view itself for the case of describing the whole table 17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument. 18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument. 19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument. 20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument. 21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument. 22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument. Input: Command: greater { hop { filter_eq { all_rows ; competition ; 2000 summer olympics } ; class } ; hop { filter_eq { all_rows ; competition ; 1996 summer olympics } ; class } }, interpretation: select the rows whose competition record fuzzily matches to 2000 summer olympics . take the class record of this row . select the rows whose competition record fuzzily matches to 1996 summer olympics . take the class record of this row . the first record is greater than the second record . Output:
yes
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:My conscience says that it the death penalty is immoral. Solution:
Valid
Part 1. Definition 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. Part 2. Example [47, 444, 859, 530, 197, 409] Answer: [47, 859, 197, 409] Explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Part 3. Exercise [632, 213, 139, 379, 733, 241, 61, 393, 82, 855, 80, 235, 491, 863, 64, 3, 952, 914] Answer:
[139, 379, 733, 241, 61, 491, 863, 3]
Detailed Instructions: 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. See one example below: Problem: password = a Solution: 5 Explanation: Using 5 steps, it can become a strong password Problem: password = QV Solution:
4
instruction: 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. question: News Headline: Chinese {spies} targeting U.S. maritime industry : Edit: checkers answer: Funny question: News Headline: Chris {Cornell} , Soundgarden frontman , dies aged 52 Edit: Christmas answer: Not Funny question: News Headline: An Incoherent Strategy on {North Korea} Edit: dating answer:
Not Funny
TASK DEFINITION: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. PROBLEM: পশ্চিম বংগের লোকেরা খুবই খারাপ। সারা ভারতের লোকেরা এদের ঘৃণার চোখে দেখে। পশ্চিম বংগের অধিকাংশ হিন্দুদের আদিবাড়ি বাংলাদেশে। এর মহান মুক্তিযুদ্ধের সময় পাকিস্তানিদের ঝাটার বারি খেয়ে এরা এদেশ থেকে ভেগেছে। ভারতের অন্যান্য রাজ্যের লোকেরা এদেরকে ছোটলোক বলে গালি দেয়। SOLUTION: non-religious PROBLEM: ভারত মারলে যুদ্ধ বিরতি ভাংছে পাকিসহান মারলে ঠিকআছে। SOLUTION: non-religious PROBLEM: কোনো মেয়ের দিকে এমন ভাবে তাকাও যেন সে নিজের শাড়ি খুলে ফেলে SOLUTION:
non-religious
Definition: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'. Input: ninesixeightnineseventhreefive Output:
9689735
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. One example: [47, 444, 859, 530, 197, 409] Solution is here: [47, 859, 197, 409] Explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Now, solve this: [509, 763, 526, 996, 877, 479, 839, 601, 463, 43, 164, 687, 642, 409, 431, 128, 876] Solution:
[509, 877, 479, 839, 601, 463, 43, 409, 431]
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. Give the neames of wines with prices below 50 and with appelations in Monterey county. SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.price < 50 How many entrepreneurs are there? SELECT count(*) FROM entrepreneur What is the code of each location and the number of documents in that location?
SELECT location_code , count(*) FROM Document_locations GROUP BY location_code
Detailed Instructions: In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation. Q: Japan A:
Constitutional Monarchy
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? If you are still confused, see the following example: Context: 'That sounds pretty reasonable as I am in need of firewood the most. Would it be most reasonable to each take what we need most and split the water down the middle?' 'Yes, it would.' 'I think that sounds fair. The problem is that there are 3 waters and one of us would get two and the other one. How should we sort that?' Utterance: 'You can take the two water. I am not that thirsty most days.' Solution: No Reason: In this utterance, the participant does not use self-need since they do not talk about any need for themselves. Now, solve this instance: Context: 'Hi there. I'm hoping we can make a deal about me getting firewood. I get really cold at night and I'd love to have my fire still going in the morning for coffee - I'd gladly share some if you pop by my campsite.' Utterance: 'I am in dire need of firewood myself. I was planning on bringing food that needed to be cooked over flame. 😮' Student:
Yes
Teacher: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. Teacher: Now, understand the problem? Solve this instance: তুই মাগি ভিক্ষারি বুঝলি তুই আবার পর কে ভিক্ষারি বলছিস Student:
non-religious
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: Find the list of page size which have more than 3 product listed Answer: SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3 Question: Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment. Answer: SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000 Question: Which city has most number of arriving flights? Answer:
SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1
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. ..zu sich selbst gefunden, leider! . Naja, jetzt ist's halt Musik die man von einer 19jährigen erwartet, wenn sie "ihren eigenen Weg" geht! Schade.
NEG
Given the task definition and input, reply with output. In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries. Czech Republic
Eastern Europe
Q: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. After positioning of a 0.035 inch guidewire proximal to the biliary stricture, the preloaded catheter was advanced over the guidewire by using the monorail technique. A:
non-adverse drug event
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. One example: Find the id and city of the student address with the highest average monthly rental. Solution is here: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 Explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example. Now, solve this: What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December? Solution:
SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE "12/%"
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. Let me give you an example: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)। The answer to this example can be: religious Here is why: Here it expresses hate against the religion, hence tagged as religious. OK. solve this: নারী সরকার চাইনা আওয়ামী লীগ-বিএনপি চাইনা চাই একজন সত্তিকারের নেতা জাকির নায়েকের মত Answer:
non-religious
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: thunderstorm Entity 2: air
yes
Q: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. THEM: i just need three hats for my bald head. YOU: how about 1 hat goes to my head and the rest also. A:
No
TASK DEFINITION: Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story. PROBLEM: Premise: Chess was not a game the Becks liked to play. Initial Context: They were a family that loved games, all but chess. Original Ending: One time they were at a chess match with other families. And they lost horribly in front of many people. They don't play games anymore. Counterfactual Context: They were a family that hated playing games. SOLUTION: One time they were at a chess match with other families. They lost horribly in front of many people. That's why they hate playing games. PROBLEM: Premise: Dj went to wash the coffee carafe in the bathtub. Initial Context: He would do this so the grounds wouldn't go down the kitchen sink. Original Ending: As Dj bent down towards the tub his robe string fell in the toilet. Dj made a disgusted expression and jerked it out. He was thankful he'd recently cleaned his toilet! Counterfactual Context: He sat on the toilet seat with the top down to wash it. SOLUTION: As Dj bent down towards the tub his robe string was trapped under the toilet seat. Dj made a disgusted expression as he jerked it out. He was thankful he'd recently cleaned his toilet! PROBLEM: Premise: Our last field trip was the worst one I'd ever experienced. Initial Context: We were bussed to the local sewage plant. Original Ending: We walked in a line along the brown and green sewage. They explained their jobs to us, but nobody was listening. We were all so grossed out by the sewage that we didn't pay attention. Counterfactual Context: We broke down and never made it to the museum. SOLUTION:
We stooed in a line along the highway. They explained that help was on the way, but nobody was listening. We were all so bored by the waiting that we didn't pay attention.
Detailed Instructions: Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise Problem:The policy makes a statement about how data from children is treated. Solution:
Not Specified
Definition: In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. Input: [{'first': 80, 'second': 41}, {'first': -18, 'second': 98}, {'first': -11, 'second': -34}, {'first': -87, 'second': 4}, {'first': -9, 'second': -20}, {'first': 52, 'second': 14}] Output:
[{'first': -87, 'second': 4}, {'first': -18, 'second': 98}, {'first': -11, 'second': -34}, {'first': -9, 'second': -20}, {'first': 52, 'second': 14}, {'first': 80, 'second': 41}]
In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy". One example: 14/25/1405 Solution is here: 0 Explanation: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12. Now, solve this: 18/40/1902 Solution:
0