Dataset Viewer
Auto-converted to Parquet
prompt
stringlengths
105
10.9k
response
stringlengths
0
2.08k
In this task, you are given a string with duplicate characters ocurring in the string. You need to return the character which is ocurring with the maximum frequency. In case of a tie, return the character with the least ascii value. One example is below. Q: mvwduljootadondrwbrledodqnmfqtxalvuxnfgft A: d Rationale: d is ocurring with maximum frequency of 5. Q: rigabchdgzulwxgylasliyzxykvyyzkwkvfazelhhdd A:
y
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. Example: password = a Example solution: 5 Example explanation: Using 5 steps, it can become a strong password Problem: password = q6OPQQwQNmk
Solution: 0
Detailed Instructions: In this task, you're given a dialogue between a customer and a flight booking agent with a gap in the conversation. Your job is to find the answer of the previous dialogue. Avoid using irrelevant extra information while creating the answer. The answer should be relevant to the question before the blank. If you fill the blank with a question, it should have an answer from the agent in the given dialogue. Fill the gap marked with underline. Q: customer: Hello. agent: Hello, how may I help you today? customer: My name is Ashley Garcia, I want a flight for round trip from Houston TX-HOU. My plan is to meet my friend family. agent: Sure, may I know your journey dates please? customer: I am travelling on 02/06 and I want a return on 02/08. I need a flight with only one connection. agent: Ok, can you hold on a moment, I will get back to you. customer: Sure. agent: Thanks for waiting, Flight 1006 with UA airlines of price 100 matches your specified details. customer: It is perfect for me, you can book the flight ticket. agent: Ok, your ticket has been confirmed. __ agent: Thank you for connecting with us. A:
customer: Thank you for helping me.
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). Example: Entity 1: plant Entity 2: leaf Example solution: yes Example explanation: The answer is correct. Because the leaf is part of the plant. Therefore, here leaf is meronym and the plant is holonym. Problem: Entity 1: dugong Entity 2: protein
Solution: no
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms. ---- Answer: Noice Like it Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms. ---- Answer: Moe Thu Zar Generate a 2-star review (1 being lowest and 5 being highest) about an app with package com.nolanlawson.logcat. ---- Answer:
Warning: Doesn't work on any CM13 device
In this task, you are given two sets, and a question. You need to find whether an element is at the intersection of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. The intersection of two given sets is the largest set which contains all the elements that are common to both sets. An element is at the intersection of two given sets, A and B, if common to both A and B. Classify your answers into 'Yes' or 'No'. Input: Consider Input: Set1: '{4, 8, 9, 10, 11, 14, 15, 17, 18, 19}', Set2: '{17, 14}'. Is the element '14' in the intersection of Set1 and Set2 ? Output: Yes Input: Consider Input: Set1: '{1, 20, 5}', Set2: '{16, 1, 12, 20}'. Is the element '20' in the intersection of Set1 and Set2 ? Output: Yes Input: Consider Input: Set1: '{3, 5, 7, 9, 10, 11, 14, 15, 16, 19}', Set2: '{10, 2, 15}'. Is the element '19' in the intersection of Set1 and Set2 ?
Output: No
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. Let me give you an example: [0,1,0,2,5,1] The answer to this example can be: [2,5] Here is why: The only elements that are not duplicated is 2 and 5. This is a good example. OK. solve this: [7, 5, 3, 3, 4, 2, 1] Answer:
[7, 5, 4, 2, 1]
Q: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. What are the ids of the problems which are reported before 1978-06-26? A:
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
In this task, you need to answer 'Yes' if the given word is the longest word (in terms of number of letters) in the given sentence, else answer 'No'. Note that there could be multiple longest words in a sentence as they can have the same length that is the largest across all words in that sentence. Input: Consider Input: Sentence: 'a mother and father sitting down and interacting with a toddler'. Is 'and' the longest word in the sentence? Output: No Input: Consider Input: Sentence: 'someone is on their motorcycle in his gear'. Is 'motorcycle' the longest word in the sentence? Output: Yes Input: Consider Input: Sentence: 'a gray wall a clock a vase and some branches'. Is 'branches' the longest word in the sentence?
Output: Yes
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Ex Input: I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_TURN_LEFT I_WALK Ex Output: jump left twice and walk opposite left Ex Input: I_TURN_LEFT I_TURN_LEFT I_WALK I_TURN_LEFT I_TURN_LEFT I_WALK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK Ex Output: look around left after walk opposite left twice Ex Input: I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_WALK Ex Output:
walk opposite right thrice after turn left thrice
Given the task definition, example input & output, solve the new input case. In this task, you will be given a sentence about a person. You should determine how the sentence affects how the person is perceived by most people in society. Your choices are: Positive: The social perception of [PERSON] in the sentence is considered predominantly positive. Negative: The social perception of [PERSON] in the sentence is considered predominantly negative. No impact: There is no clear impact of social perception of [PERSON] associated with the sentence. Example: [PERSON] behaved like a professional in the job interview. Output: Positive Behaving professionaly in a job interview has a positive impact on people's perception of a person. New input case for you: [PERSON] worked as a nurse and a child care assistant. Output:
No impact
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring. One example: bYubMFxyTqR, AcDbMFxSnI Solution is here: bYubfmxyTqR, AcDbfmxSnI Explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI' Now, solve this: usBflocWnnLPVTqXOGuENPGOaVKdFcTShNPj, LfajaQHkrqXOGuENPGOaVKdFcTkpNDmkqEbR Solution:
usBflocWnnLPVTacdefggknoopqtuvxShNPj, LfajaQHkracdefggknoopqtuvxkpNDmkqEbR
Problem: 1. Near on par with the original...A real surprise package 2. While Salvation certainly isn't as bad as that first sequel, it still doesn't come near the sheer coolness of the first one. 3. Although I wouldn't quite go so far as to recommend it, the movie does have a terrific look and some intriguing, albeit overly dramatic, acting. 4. Should they go back and make yet another Crow film, I suggest that they consider adding some originality. 5. A pleasingly low-budget demeanor. 6. Plenty of bad dialogue, zero originality or depth. What is the consensus? **** Answer: The Crow: Salvation adds nothing new to the series and is plagued by bad acting and dialogue. Problem: 1. While the film has a true lived-in feel, and demonstrates a burgeoning talent on the part of its young auteur, its portrait of young slackers lacks the freshness to overcome its all too vivid malaise. 2. By simply re-creating what he has observed, Bujalski has created a tender, funny and stealthily affecting portrait of youthful powerlessness and frustration. 3. Funny Ha Ha is a jagged bite of real life, shambling about with humor, sadness, boredom, excitement. 4. Bujalski has a knack for letting scenes build and then cutting out abruptly, duplicating the flow of a life in flux. 5. (Bujalski's) easy naturalism creates an unexpected comic lightness for something so laced with ambiguity. 6. The film's acutely composed dialogue is at once disturbingly empty and brutally poignant. 7. An honest portrait of twentysomething dating -- and one with lots of heart. 8. Dollenmayer's low-key naturalism is a perfect compliment to the camera's hand-held gaze, presenting a touching combination of amiable nonchalance and emotional yearning. 9. Made on so frayed a shoestring that it looks like a Dogma project minus the glitz and about as vacuous as its array of clueless twenty-something characters. 10. The tagline says, 'This would be sad if it weren't so funny', well guess what, it's not that funny, so it must be sad. What is the consensus? **** Answer: This modest, unpretentious character study astutely captures the emotional states of the 20-something slacker. Problem: 1. The sheltered world of the Angulos, informed by cinema more than the teeming city right outside their apartment windows, is a haunting and utterly unique one. 2. What a sad, strange, intoxicating movie. 3. At its best, The Wolfpack helps us to see the cinema in the world, and not the other way around. 4. [It] has to be seen to be believed. 5. [VIDEO ESSAY] You can't help but root for these highly articulate and reserved kids to make good in the real world. You just might be hearing more from the "Wolfpack" as filmmakers in their own right. 6. The dysfunctional Duggars of Arkansas have nothing on the Angulos of New York's Lower East Side. 7. It's a deeply strange success story, but it's self-aware and humorous, and full of frankly amazing revelations. 8. The Wolfpack is a reminder that much of the "crap" we decry has the potential to liberate, offering a bridge off the island of terror we call the nuclear family. 9. It's partially a story of the role cinema can play in helping connect viewers to the world, of helping people get find and hold hope, but it's also a capturing and catalyst for developing hope. 10. Tender, funny, heartbreaking and gloriously gritty, The Wolfpack is a must for any movie connoisseur, while it's also a reminder of just how powerful the medium can be. What is the consensus? **** Answer:
Offering a unique look at modern fears and our fascination with film, The Wolfpack is a fascinating -- and ultimately haunting -- urban fable.
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. Example input: Premise: Susie was sitting on her barstool. Initial Context: She kept kicking the counter with her feet. Original Ending: Suddenly, her kick sent her falling backwards. The chair hit the ground with a thud and broke. Susie hurt her head and was really scared. Counterfactual Context: She kept herself steady with her feet. Example output: Suddenly, an earthquake sent her falling backwards. The chair hit the ground with a thud and broke. Susie hurt her head and was really scared. Example explanation: The generated new ending is perfect. It considers the counterfactual context and changes required parts in original ending. Q: Premise: Sean loved playing Rock Band with his friends. Initial Context: He was great at it, and always said he should be a rock star. Original Ending: Sean harassed his parents til they bought him a guitar. He formed a band and said he didn't even need lessons. He realized playing a real guitar was much harder and quit. Counterfactual Context: He was great at it but he was not interested in learning any instruments. A:
His parents convinced him to give the real guitar a shot. He formed a band and said he didn't even need lessons. He realized playing a real guitar was much harder and quit.
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. Q: Premise: Lucy was at home on a rainy afternoon. Initial Context: Her grandfather promised her a treat today. Original Ending: But Lucy hadn't seen grandpa all day. At 5 PM he finally returned home. Lucy was pleased to see grandpa had brought her an Easy Bake Oven. Counterfactual Context: Her mother promised her a treat today. A:
But Lucy hadn't seen mom all day. At 5 PM she finally returned home. Lucy was pleased to see mom had brought her an Easy Bake Oven.
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. One example: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)। Solution is here: religious Explanation: Here it expresses hate against the religion, hence tagged as religious. Now, solve this: কুত্তা সফির নামের পুর্বে আল্লামা শব্দ উচ্চারন করা মুর্খতা। জংগি সফি বললে ঠিক হবে। Solution:
non-religious
Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'. Example: Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat . Example solution: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O) Example explanation: We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence. Problem: Sobre els accessos , l' estació del Vallès tindrà una bona connexió per tren suburbà , gràcies a les línies de l' actual Metro del Vallès de Ferrocarrils de la Generalitat i la línia C-5 de Rodalies Renfe , la qual s' ha de construir properament .
Solution: Sobre (O) els (O) accessos (O) , (O) l' (O) estació (O) del (O) Vallès (B-LOC) tindrà (O) una (O) bona (O) connexió (O) per (O) tren (O) suburbà (O) , (O) gràcies (O) a (O) les (O) línies (O) de (O) l' (O) actual (O) Metro (B-MISC) del (I-MISC) Vallès (I-MISC) de (O) Ferrocarrils (B-ORG) de (I-ORG) la (I-ORG) Generalitat (I-ORG) i (O) la (O) línia (O) C-5 (O) de (O) Rodalies (B-ORG) Renfe (I-ORG) , (O) la (O) qual (O) s' (O) ha (O) de (O) construir (O) properament (O) . (O)
Given a sentence in the Japanese and Thai language. Your task is check if the Filipino sentence is translation of Japanese. if the translation is correct than generate label "Yes", otherwise generate label "No". One example: Japanese: 詳細は昨日UTC17時30分、英国議会でイギリスのルス・ケリー運輸大臣によって伝えられた。 Thai: รายละเอียดถูกเปิดเผยโดยเลขาธิการกระทรวงคมนาคมของUK นางRuth Kelly ในสภาสามัญชน เมื่อเวลา17:30 UTC Solution is here: Yes Explanation: The converted Thai sentence is correctly translated from Japanese because converted sentence has the same message as the original Japanese sentence that Details were given yesterday in the House of Commons at 1730 UTC by Britain's Transport Secretary Ruth Kelly. Now, solve this: Japanese: 「我々のようなインフォテイメントを求める市場が確実にあるので、他の言語に乗り出していくことを楽しみにしている。」 Thai: เขาได้คาดประเมินอัตราการสูญพันธุ์ดังกล่าวในช่วงปลายทศวรรษ 1980 โดยได้รับคำวิพากษ์วิจารณ์มากมาย ทว่าในปัจจุบันตัวเลขดังกล่าวได้รับการยอมรับในวงกว้างโดยเหล่านักวิทยาศาสตร์ Solution:
No
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". Example input: 14/25/1405 Example output: 0 Example explanation: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12. Q: 05/29/1830 A:
1
Given a sentence in Japanese, provide an equivalent paraphrased translation in Chinese that retains the same meaning both through the translation and the paraphrase. Example: 1975 - 76年のNBAシーズンは、全米バスケットボール協会の30番目のシーズンでした。 Example solution: 1975-76赛季的全国篮球协会是NBA的第30个赛季。 Example explanation: This is a correct and accurate translation from Japanese to Chinese because the translated paraphrase retains the main message that between the years 1975-1976, the 30th NBA season occurred. Problem: Contempo Magazineは、テキサス州マッカレンで発行されている月刊誌および毎日のオンラインアメリカンマガジンです。
Solution: Contempo Magazine是德克萨斯州麦卡伦的月度美国印刷和在线杂志。
This task is to find the number of 'For' loops present in the given cpp program. [EX Q]: int sum=0; //??????sum???????? int yueshu[100]={0}; int s=0; void number(int num,int s) { int i; for(i=s;i>=0;i--) { if(num<yueshu[i]) continue; if(num==yueshu[i]) sum++; else if(num>yueshu[i]&&num%yueshu[i]==0) number(num/yueshu[i],i); } } int main() { int n=0; cin>>n; int num=0; while(cin>>num) { int i=0,j=0; for(i=2;i<=num;i++) if(num%i==0) { yueshu[j]=i; j++; } s=j-1; number(num,s); cout<<sum<<endl; sum=0; } return 0; } [EX A]: 2 [EX Q]: int fun(int m,int n) { int i,sum=1; if(n==1) { for(i=2;i*i<=m;i++) { if(m%i==0) sum+=fun(m/i,i); } } else for(i=n;i*i<=m;i++) { if(m%i==0) { sum+=fun(m/i,i); } } return sum; } int main() { int n,i,b; int a[1000]; cin>>n; for(i=0;i<n;i++) { cin>>b; a[i]=fun(b,1); } for(i=0;i<n;i++) cout<<a[i]<<endl; } [EX A]: 4 [EX Q]: int f(int a,int min);//???a???????min????????? int f(int a,int min) { if(a < min){ return 0; } int result = 1; for(int i = min;i*i<=a;i++){ if(a % i == 0){ result += f(a/i,i);//???? ??????????a/i?i????????i??????? } } return result; } int main(){ int n,k; cin>>n; while(n>0) { cin>>k; cout<<f(k,2)<<endl;//???? n--; } } [EX A]:
1
Your task is to localize given English phrase into Telugu language. When localising, follow these rules - (1) General names and concepts can be translated (2) Domain specific names can just be transliterated (3) Localised phrases can have both partial translated and transliterated parts (4) But only partial translation or only partial transliteration is not allowed (5) Copy special characters and numbers as is Example Input: Found an existing identification for %1 Do you want to replace it? Example Output: దీని కొరకు యిప్పటికేవున్న గుర్తింపును కనుగొన్నది% 1 మీరు దానిని పునఃస్థాపించుదామని అనుకొనుచున్నారా? Example Input: Plasma Runner support for Python Example Output: ఫైథాన్ మద్దతుకొరకు ప్లాస్మా డాటా యింజన్ Example Input: Window settings for %1 Example Output:
% 1 కొరకు విండో అమరికలు
In this task you will be given a list of numbers and you need to find the mean (average) of that list. The mean of a list can be found by summing every number in the list then dividing the result by the size of that list. The output should be rounded to 3 decimal places. Example input: [1,3,5] Example output: 3.000 Example explanation: The mean of the input list is (1+3+5)/3, which equals 3. This is a good example. Q: [173.903, 103.626, -96.508, 63.59, 44.234, -81.913, 189.138] A:
56.581
In this task, you are given commands (in terms of logical operations) to select relevant rows from the given table. Your job is to classify the command into one of these seven categories: (1) majority, (2) unique, (3) superlative, (4) count, (5) comparative, (6) aggregation, and (7) ordinal. Here are the defications of each category: 1. majority: Describing the majority values (most or all) over one column, with the scope of all table rows or a subset of rows 2. unique: Describing one unique row, regarding one column, with the scope of all table rows or a subset of rows 3. Superlative: Describing the maximum or minimum value in a column, with the scope of all table rows or a subset of rows 4. Ordinal: Describing the n-th maximum or minimum value in a column, with the scope of all table rows or a subset of rows 5. Comparative: Comparing two rows in the table, regarding their values in one column 6. Count: counting some rows in the table based on the values in one column, with the scope of all table rows or a subset of rows 7. Aggregation: Describing the sum or average value over a column, with the scope of all table rows or a subset of rows. Here are the definitions of logical operators for understanding of command: 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. One example: round_eq { sum { all_rows ; casinos } ; 217 } Solution is here: aggregation Explanation: In this example sum returns the sum of the values in all of the casinos rows. Hence, aggregation is right category. Now, solve this: eq { hop { nth_argmax { all_rows ; pts ; 3 } ; season } ; 2010 - 11 } Solution:
ordinal
Given the task definition and input, reply with output. In this task, you are given a list of unique integers you need to swap the positions of maximum and minimum element in the list and return the updated list. [471, 416, 38, 475, 92, 200, 179, 165, 124, 194, 163, 55, 292, 161, 315, 177, 120, 91, 128, 29]
[471, 416, 38, 29, 92, 200, 179, 165, 124, 194, 163, 55, 292, 161, 315, 177, 120, 91, 128, 475]
Given a sentence in the Japanese and Thai language. Your task is check if the Filipino sentence is translation of Japanese. if the translation is correct than generate label "Yes", otherwise generate label "No". Example: Japanese: 詳細は昨日UTC17時30分、英国議会でイギリスのルス・ケリー運輸大臣によって伝えられた。 Thai: รายละเอียดถูกเปิดเผยโดยเลขาธิการกระทรวงคมนาคมของUK นางRuth Kelly ในสภาสามัญชน เมื่อเวลา17:30 UTC Example solution: Yes Example explanation: The converted Thai sentence is correctly translated from Japanese because converted sentence has the same message as the original Japanese sentence that Details were given yesterday in the House of Commons at 1730 UTC by Britain's Transport Secretary Ruth Kelly. Problem: Japanese: ピカデリー線の爆弾は、トンネル電話システムのワイヤーが爆発で切断されたときに最初に認められ、他のソフトウェアに記録されたイベントだった。 Thai: เหตุโจมตีรุนแรงอีกแห่งหนึ่งคือที่เขตท่าเรือคลองเตยใกล้ทางแยกถนน ณ ระนอง ที่ซึ่งระเบิดถูกซ่อนไว้ในถังขยะซึ่งอยู่ใกล้ศาลเจ้าจีน ได้ถูกจุด เปนเหตุให้มีผู้รับบาดเจ็บเจ็ดคน ในจำนวนนั้นเป็นเด็กหญิงอายุสิบปี
Solution: No
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: And she's doing absolutely fantastic. A:
I izvrsno se osjeća.
Write a fact related to the given fact, based on the given topic word. Note that, your fact should have at least one word in common with the given fact. All facts in this task refer to scientific facts. Your related fact must form a chain with the given fact. Chains form when two facts connect together to produce the third fact. An example of a chain is: "pesticides cause pollution" (given fact) + "pollution can harm animals" (related fact) → "pesticides can harm animals" (connected chain). Avoid creating simple paraphrases of the given fact. While your generated fact should be related to the input fact, they must describe slightly different scientific phenomena. It's okay if your related fact includes some irrelevant information, provided that it has some overlap with the given fact and it contains some words corresponding to the provided topic. Fact: conserving resources has a positive impact on the environment. Topic: conserving resources.
Recycled products conserve resources.
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'. Gandolfini was born in Westwood, New Jersey on September 18, 1961
September 18, 1961
You will be given a definition of a task first, then some input of the task. 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. I have heard of two instances of innocent men who were executed back in the seventies. Output:
Valid
Given a pair of words, generate the relation between them. The first word is called the 'concept' and the second word is called the 'relatum' The relation must be one of the following: co-hyponym (coordinate), hypernym, meronym, attribute, event, or random. A coordinate relation indicates that the concept and relatum belong to the same semantic class. A hypernym relation indicates that the relatum is a category of which the concept is a specific instance. A meronym relation implies that relatum is a part/component/organ/member of the concept. An attribute relation is when the relatum is an adjective expressing an attribute of the concept. An event relation holds when the relatum is a verb referring to an action/activity/happening/event that is performed by or with the concept. If the relatum and concept are unrelated, the relation between them is 'random'. Classify your answers into coord, hyper, mero, attri, event, and random. Q: Concept: pub, Relatum: interior. A:
mero
You are given first 5 messages from a series of message exchanges between 2 persons playing the game of Diplomacy which is an American strategic board game. You need to generate the next message. The message should be generated such that it fits the context seen so far. Avoid the text that is (i) tangent to the context, (ii) repeats the context. One example is below. Q: ['Heyyyy Turkey', 'Whatcha thinking re: start of the game?', "It kind of depends. I'll probably want to stop Russia from advancing south", "I'm kind of afraid of Austria and Russia teaming together on me", 'I mean if that happens you’re donezos'] A: What vibes are you getting from each of them? Rationale: The message fits the context as it asks for the vibes of 2 of them which refers to 2 countries: Austria and Russia in the second last message. Thus it is a positive example. Q: ["Hello, Austria. \nLook, I'd love to be besties and all that, and maybe we'll get there. But for now can I assume that we both have bigger fish to fry, and that we both know that attacking each other early will mean mutually assured destruction?\n\nI'm open to a non-aggression pact, possibly with sharing information, natirally. Outside of that, let me know what's on your mind and we'll go from there.\n\nBest,\n\n- Kaiser", "No thoughts on the start of the game? Any information I can share, or vice-versa?\n\nYou're pretty quiet down there...", "I actually thought I'd responded sorry. I don't know why we can't be best friends. Germany does well then Austria can do well and vice versa. Not much from.my neighbours. You got anything from Italy?", "Nothing from you or Italy until now. You'll be shocked to learn that Turkey mused about how much he loves to play Germany and open to Tyrolia. 😂\n\nCan't blame a guy for trying, I guess!\n\nAnyway, for now I'm good with a short pact to stay out of Tyrolia (unless you've planned a bounce with Italy or something, but that would be weird ). Maybe limit it to 1901 for now? I don't have any plans in that neighborhood, but I don't want to bind your hands if something comes up with Russia or Italy.", "Tyr 1901 for me would be pretty crazy and no I don't plan for it so I'm happy to agree to it. I've got nothing from Italy either so I'll just have to play defensively there. Russia seems to be interested in opening north"] A:
I wish I could say "what can I do to help you," but I have nothing in range. What I am doing is sowing some seeds of doubt with Italy - floating the idea that Russia and Turkey are working together, and backhandedly noting how bad it will be for him if they are, and they wipe you out quickly. You have a best probabilistic set of moves, but the best you can realistically hope for is maybe 1 build if you go +Greece, +Serbia, -Trieste. Maybe. If I were you, I'd reach out to Italy. Suggest that he take Tunis, and instead of forcing him out of Trieste, you'll take Greece and move on. Tell him you're going to move to Trieste because it's your best move. It is. Request that he move to Vienna, because that's Russia's best move (it is) and you want to prevent him from getting another build. You'd move Bud-Tri, and Ser S Alb-Gre.
In this task, we have Spanish and Catalan tweets for automatic stance detection. The data has three labels Against, Favor, and Neutral which express the stance towards the target -independence of Catalonia. If the tweet criticizes the independence of Catalonia then it's 'Against' and if the tweets support it then it will be labeled as 'Favor' also if the tweets state information or news rather than stating opinion then it will be characterized as 'Neutral'. Example: Tweet: Vull votar i votaré. Hi ha quelcom que no em permet no fer-ho. Ara bé tinc un greu problema. No sé a qui!! Example solution: Favor Example explanation: The tweet asks for the right to vote for the independence of Catalonia and it supports the movement so it will be characterized as 'Favor'. Problem: Tweet: Hem de dir que l'agressor és un policia camuflat d'independentista. Que estigui identificat com a CDR reconegut i parent de Carles Sastre no importa, ja sabeu, el que pensem nosaltres només depèn del que diem nosaltres perquè als comentaris que no interessen li fem un Tortosa.
Solution: Against
The input contains texts obtained from news articles, ted talks, movie transcripts, radio transcripts, science and technology texts, and other short articles curated from the web and professional translators. Your task is to translate the given Yoruba sentence into the English language. Please bear in mind the following guidelines while doing the translation: 1) Generated output should be natural language and formal form of each sentence in your language. The output sentence should not be a colloquial form of the input sentence. The generated output should be in natural language which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) Numbers and fully capitalized words like SEPTEMBER, or 10 HOURS *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. 5) Note the input is in sentence case except for special placeholders. Please do the same in your translations. One example: “Wo ọmọọ̀ mi dè mí”: ó ń lo kíjìpá mẹ́ta gbó; mélòó ni ọlọ́mọọ́ máa lò gbó? Solution is here: “Look after the child for me”: she wears three durable hand-loom wrappers to tatters; how many would the mother of the child herself wear out? Explanation: The Yoruba sentence is properly translated to the English language as both the sentences convey the same meaning and both the sentences are in sentence case and it preserves the punctuation marks as well. Now, solve this: Látìgbà tí Ilé Ẹjọ́ Gíga Jù Lọ ní Rọ́ṣíà ti fòfin de àwa Ẹlẹ́rìí Jèhófà ní April 20, 2017, ni wọ́n ti ń ṣenúnibíni sáwọn arákùnrin àtàwọn arábìnrin wa, tí wọ́n sì ń fi wọ́n sẹ́wọ̀n. Solution:
Since April 20, 2017, when the Russian Supreme Court effectively banned the worship of Jehovah’s Witnesses in the country, our brothers and sisters have faced relentless persecution and imprisonment.
Detailed Instructions: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the alphabetical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no alphabetical element is in the list. Q: ['4961', 'Y', '5121', '1893', 'u', 'L', 'H', '2651', 'F', '2141', 'R', '6883', '1313', '263', 'T', 'K', '9511'] A:
2, 5, 6, 7, 9, 11, 15, 16
Instructions: You are given a short text as a title. Your task is to generate a poem as output that is related to the given title and should feel like written by kids. The output should be a run-on sentence (two or more complete sentences connected without any punctuation). The poem should not be too long or too complex, because it should feel like it is written by younger person without high level of literature education. Input: Problems in my life! Output:
why do the earth always spin why do i always feel bad within why do god always forgive why do space seem like it never end why do old yeller have to die why do my dad never cry why do everybody call me a nice guy
Q: Read the passage and find if the passage agrees, disagrees, or has a neutral stance on whether Global warming is caused by human activities. Answer only with keyword (a) agrees - if passage agrees with the target (b) disagrees - if passage disagrees with the target (c) neutral - if the given passage neither agrees nor disagrees with the target. You don't need to use external knowledge in this task, and you have to answer based on the given passage. Climate change is not primarily caused by man. A:
disagrees
In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer Q: 5534 @ 7767 @ 9232 @ 3663 # 724 # 4051 A:
21421
Detailed Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Gun Control) 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 gun control. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of gun control. Q: The language itself is not dubious or ambiguous: ���A well regulated militia being necessary to the security of a free state.��� A:
Valid
Q: Given a hotel review and the corresponding polarity of review (i.e., Negative or Positive) identify if the polarity is correct. Write 'true' if it's correct, 'false' otherwise. Review: Worst high priced hotel I've ever stayed at! I had a business meeting in Chicago and heard good reviews from a few co-workers thought it would be a nice place to stay but was a little upset with my experience with Swissotel in Chicago.Front desk clerk was very rude at check in, valet parking was great until they brought my SUV around front with a quarter size dent in the passenger size door, the hotel refused to pay for the damages. The room was very beautiful besides the faint mildew smell in the room. Room service was great and very pleasing!Our business meeting took place in the St Gallen room where our meeting took a little disruptive turn, there was construction going on during that time and was very hard to hear the announcer in our meeting. Other than that the hotel was beautiful but the stay wasn't as great as i expected, you may want to book somewhere else if you have a business meeting to attend in Chicago. Polarity: Positive A:
false
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. Example: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)। Example solution: religious Example explanation: Here it expresses hate against the religion, hence tagged as religious. Problem: দেখ, তোদের ভাই ফাকিস্তানের কি অবস্থা আজ।
Solution: 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). Example input: Entity 1: plant Entity 2: leaf Example output: yes Example explanation: The answer is correct. Because the leaf is part of the plant. Therefore, here leaf is meronym and the plant is holonym. Q: Entity 1: beetle Entity 2: surface A:
yes
In this task, you are given an english sentence and a kurdish sentence you have to determine if they both are faithful translations of each other. Construct an answer that is 'Yes' if the second 'Kurdish' sentence is a translation of 'English' sentence and 'No' otherwise Input: Consider Input: 'English : Four of the five soldiers lost their lives during the incidents in Ankara, the other in İstanbul.','Kurdish : *Li Enqereyê 78, li Meletiyê 1, li Stenbolê 94 welatiyên sivîl hatin kuştin.' Output: No Input: Consider Input: 'English : Eight soldiers and six Kurdistan Workers’ Party (PKK) members had lost their lives in the conflict that erupted in Turkey’s southeastern Çukurca district of Hakkari province on May 13 and that the General Staff had declared that two of the soldiers died in the helicopter crash that occurred due to fatal technical malfunction.','Kurdish : Li gorî wê daxuyaniyê di 13ê Gulanê de li navçeya Çelê ya Colemêrgê şer derketiye û di encamê de 8 leşker û 6 şervanên PKKê jiyanên xwe ji dest daye. Serekaniyê destnîşan kiribû ku 2 ji wan leşkerên kuştî, dema bi diçûn herêma lê şer heye, ji ber problema teknîkî helîkoptera ku têdebûn ketiye û di encamê de jiyanên xwe ji dest dane.' Output: Yes Input: Consider Input: 'English : April 14','Kurdish : 24ê Sibatê:'
Output: No
In this task you will be given an arithmetic operation in Italian and you have to find its answer. The operations 'addition' and 'subtraction' have been replaced with their italian translations i.e you need to perform addition when you see 'aggiunta' and subtraction in case of 'sottrazione'. Q: 7638 aggiunta 5747 aggiunta 2481 aggiunta 4251 aggiunta 9867 A:
29984
Detailed Instructions: In this task you will be given a list of integers. You should remove all of the integers that are divisible by 3 from the list. If every integer in the input list is divisible by 3 then an empty list should be returned. Zero is divisible by 3. Q: [34, -20, -63, 45] A:
[34, -20]
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance. One example is below. Q: [9, 40, -33, 12, 17, -32, 40] A: 0 Rationale: The minimum absolute difference is 0 because '40 - 40 = 0' and '40' appears in the list twice. So this is a good example. Q: [-53, -76, 60, 9, -93, -62, 21] A:
9
You are asked to create a question containing a blank (_), based on the given context word. Your question must contain two related but different objects; for example "trophy" and "suitcase". The expected answer to your question must be one of the objects present in the sentence. The expected answer must not be associated with any specific word in the question; instead it should depend on the context present in the question. The expected answer should not be equally likely to fill the blank. For your question, there should be a agreed upon answer to fill in the blank. Your generations should NOT contain potentially explicit, offensive, or adult content. Do not use animals or proper nouns (e.g., New York, Macbook, Jeff Bezos, McDonald's, ...) as your objects. Avoid repeating the same style, pattern or phrases in each question, try to increase diversity by varying sentence structure, blank placement etc. Your question must contain at least 15 and at most 30 words. You must utilize the given context word while writing the question. Your question must contain only one blank. Make sure that Object X and Y have the same number e.g. when ObjectX is singular, Object Y must be singular, too. The two objects (Object X & Object Y) should be used ONCE in your question. Here is a list of attributes and associated pair of contrastive words which may be used to create a valid question using the objects. You can use either of the contrastive words, but not both. You should think about more such attributes and associated words and use them in your question. | Attribute | triggerword | contrastive triggerword | | age | old | new | | altitude | low | high | | area | small | vast | | brightness | dark | light | | clarity | obscure | clear | | cleanness | dirty | clean | | complexity | simple | complex | | cost | cheap | expensive | | density | sparse | dense | | depth | shallow | deep | | distance | near | far | | electric conductivity | low | high | | flexibility | rigid | flexible | | granularity | fine | coarse | | hardness | soft | hard | | length | short | long | | magnitude | small | large | | mass | small | large | | odor | weak | strong | | pressure | low | high | | resistance | low | high | | shape | round | sharp | | shape | flat | spiky | | size | small | large | | sound | quiet | loud | | sound pitch | low | high | | speed | slow | fast | | stability | unstable | stable | | strength | weak | strong | | temperature | low | high | | texture | smooth | rough | | thermal conductivity | low | high | | thickness | thin | thick | | volume | small | large | | weight | light | heavy | | width | narrow | wide | | location | in | out | | location | up | down | | location | above | below | | location | on | off | | location | to | from | Q: Context Word: Relax. A:
The guests moved from the dining room to the bedroom to relax, since the _ was so noisy .
In this task, you will use your knowledge about language (and common sense) to determine what element the marked number refers to. The numbers are marked with two underlines around them, like: _ number _. There are several possible answers, you'll need to choose the proper one. Carefully read the given text, pay special attention to the marked number, think about what (unwritten) information the marked number holds inside, choose the most adequate word(s) from the optional answers. If none of them seems right to you, there's also an option for other. If your answer is "REFERENCE", also write the reference entity, otherwise write the implicit option name. Options to choose from are: REFERENCE: Some object which is being mentioned in the text before or after the target number. The reference answer has a higher priority than any other. If both Reference and another answer are possible, prioritize the Reference. YEAR: Describing a calendric year AGE: Describing someone's age CURRENCY: Reference to some monetary value e.g dollar, euro etc. PEOPLE: Describing a single/plural persons TIME: Describing a time of the day. Usually you can add the word o'clock after those numbers. OTHER: Some other option, which isn't listed here. Example: Jess Mastriani: No, I don't want another crooler, thank you very much. FBI Agent Nicole Scott: But it's good for you. It's got... honeyglaze. Please die for this crooler, Jess. Jess Mastriani: I've had _ two _ already. Who eats three croolers in a night? FBI Agent Nicole Scott: Take a look. [Nicole takes a huge bite] Mmmmm, Mmmmm, Mmmmm! Example solution: REFERENCE crooler Example explanation: In this example, the number two refers to something that appears in this text. In this example, it refers to the word: crooler. Problem: Judy Adams: _ Twenty - two _ fifty a week does n't go very far these days .
Solution: CURRENCY
Given a hotel review and the corresponding polarity of review (i.e., Negative or Positive) identify if the polarity is correct. Write 'true' if it's correct, 'false' otherwise. Q: Review: Beautiful views and awesome service! My husband and I stayed at the Swissotel in Chicago while meeting up with some old friends from college. We have been to Chicago a few times but never stayed at this hotel before. First off the architecture and feel of the hotel is just amazing. So beautiful! The views from our corner suite was breathtaking and the accomodations were flawless. The fact that we could have an apartment like setting rather than a cold hotel room made all the difference. From the big tub in the bath to the entertainment system and work area, everything is in place to make your stay like being at home but with an awesome view of the Chicago Skyline. We took advantage of the Executive Club for desserts and breakfast and had dinner one night at the Palm restaurant. Delicious food! We will definitely stay at the Swissotel the next time we visit Chicago. Polarity: Negative A:
false
Detailed Instructions: The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the no-need strategy, otherwise output No. no-need is a cooperative negotiation strategy. It is used when a participant points out that they do not need an item based on personal context such as suggesting that they have ample water to spare. no-need can directly benefit the opponent since it implies that the item is up for grabs. Q: Context: 'Good evening, how are you doing today?' Utterance: 'Welcome to the camping trip Dude!' A:
No
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. Example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . Example solution: Tense Example explanation: The verbs in this example are changed from past tense to present tense. Problem: original sentence: I'm sure that my map will show this building ; it is very famous . paraphrase: I'm sure that my maps will show these buildings ; they are very famous .
Solution: Number
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 Input: Another part of the company or institution does receive unspecified information about you for an additional (non-basic) service or feature. Output:
Additional service/feature
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. Example input: 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.' Example output: No Example explanation: In this utterance, the participant does not use self-need since they do not talk about any need for themselves. Q: Context: 'It's nice to know the firewood is not important to your camping trip. I'm glad I can have all the firewood to myself. How do we get to share the other resources. ' 'Actually, I think I may need more food than water. How about I take the food and we can split the water. You may have 2 waters, if you need them.' 'Sure then. You can take all the food. It's not really a priority to me. ' Utterance: 'Great. So if I have three food and one water, you can have three firewood and two water. Would that work for your trip?' A:
No
Detailed Instructions: In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list. Q: ['n', 'k', 'v', '373', '173', 'f', '285', '229', 'z', '487', '401', 'o', 'o'] A:
0, 1, 2, 3, 4, 5, 7, 8, 9
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. [EX Q]: dyddyybbbdy [EX A]: yddy [EX Q]: dddkdkdnknnk [EX A]: dkdkd [EX Q]: jjhjjjhjjjjhjhh [EX A]:
jjhjjjhjj
Given the task definition and input, reply with output. You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right [86, 50, 98, 96, 66, 38, 57, 56, 58, 65]
2
Detailed Instructions: In this task, you will be shown a sentence, and you should determine whether it is overruling or non-overruling. In law, an overruling sentence is a statement that nullifies a previous case decision as a precedent by a constitutionally valid statute or a decision by the same or higher ranking court which establishes a different rule on the point of law involved. Classify your answers into overruling or non-overruling Q: to the extent that our holdings in dove, 710 p.2d 170, and cannon, 692 p.2d 740, do not abide by the bright-line standard articulated in rule 7(f)(2), we overrule those cases. A:
overruling
Given the task definition and input, reply with output. 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: hyrax Entity 2: digit
yes
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. Example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}] Example solution: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}] Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example. Problem: [{'first': -5, 'second': 35}, {'first': -66, 'second': 25}, {'first': 28, 'second': 96}, {'first': -20, 'second': -28}, {'first': -54, 'second': 2}, {'first': 78, 'second': 52}]
Solution: [{'first': -66, 'second': 25}, {'first': -54, 'second': 2}, {'first': -20, 'second': -28}, {'first': -5, 'second': 35}, {'first': 28, 'second': 96}, {'first': 78, 'second': 52}]
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 = .KRLmKN7v4Ev.qYMDzrgRP A:
2
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. Example input: Angola Example output: 1975 Example explanation: 1975 is the year of independence of Angola. Q: Tonga A:
1970
Q: In this task, you are given a year. You need to check if it is a leap year or not. A year may be a leap year if it is evenly divisible by 4. Years that are divisible by 100 (century years such as 1900 or 2000) cannot be leap years unless they are also divisible by 400. Return 1 if it is a leap year, else return 0. 1971 A:
0
Detailed Instructions: In this task you are given a list of numbers and you need to find the average of each two consecutive values. The average of two numbers a and b is calculated as: (a + b) /2. The output should be a list of the averages of each two consecutive values. A list is presented with two brackets and comma-separated values, like: [1,2,3]. Q: [38, -89, -99, -76, 100, -4, 96] A:
[-25.5, -94.0, -87.5, 12.0, 48.0, 46.0]
Detailed Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty. Q: For decades we have practice a quiet racism and put up glass ceilings, A:
Invalid
Detailed Instructions: In this task, you will be presented with a question in Dutch language, and you have to write the person names from the question if present. B denotes the first item of a phrase and an I any non-initial word. Phrase used for the person name - PER. There can be instances with no person name entity, then return 'None'. Problem:Hoewel ... Solution:
None
Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase. Example input: 1975 년부터 76 년까지 NBA 시즌은 전국 농구 협회 (National Basketball Association)의 30 번째 시즌이었다. Example output: La saison 1975-1976 de la National Basketball Association était la 30e saison de la NBA. Example 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. Q: 1956 년 여름, 마이크 바넷 (Mike Barnett)은이 시리즈가 끝나기까지 프랭크 러브 조이 (Frank Lovejoy)의 역할을 이어 받았다. A:
À l'été 1956, Mike Barnett a repris le rôle de Frank Lovejoy jusqu'à la fin de la série la même année.
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. One example is below. Q: I want you now to imagine a wearable robot that gives you superhuman abilities, or another one that takes wheelchair users up standing and walking again. A: Želim da sada zamislite nosiv robot koji vam daje nadljudske sposobnosti, ili neki drugi koji omogučuje korisnicima invalidskih kolica da stoje i ponovno hodaju. Rationale: The translation correctly preserves the characters in Croatian. Q: The first thing we usually do when someone disagrees with us is we just assume they're ignorant. A:
Prvo što činimo kad se netko ne slaže s nama je da pretpostavimo da su takvi ljudi neuki.
You will be given a definition of a task first, then some input of the task. Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc. Sentence: About 30% of Ratners's profit already is derived from the U.S. Question: What day did Ratners realize he had made profit? Category: Absolute Timepoint. Output:
Yes.
For the given English description, write an SQL command such that it accomplishes every step. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. One example: Did M0 's star , director , art director , producer , and cinematographer direct M1 and direct M2 , M3 , and M4 Solution is here: SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.film M0 . ?x0 ns:film.cinematographer.film M0 . ?x0 ns:film.director.film M0 . ?x0 ns:film.director.film M1 . ?x0 ns:film.director.film M2 . ?x0 ns:film.director.film M3 . ?x0 ns:film.director.film M4 . ?x0 ns:film.film_art_director.films_art_directed M0 . ?x0 ns:film.producer.film|ns:film.production_company.films M0 } Explanation: The query correctly extracts data on M0's star and other persons related to M0 and finds if they appear in director attributes for entities M1 to M4 Now, solve this: Did M0 's executive producer , star , producer , and writer write , direct , produce , and executive produce M1 Solution:
SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.film M0 . ?x0 ns:film.director.film M1 . ?x0 ns:film.producer.films_executive_produced M0 . ?x0 ns:film.producer.films_executive_produced M1 . ?x0 ns:film.producer.film|ns:film.production_company.films M0 . ?x0 ns:film.producer.film|ns:film.production_company.films M1 . ?x0 ns:film.writer.film M0 . ?x0 ns:film.writer.film M1 }
1. That Park has talent in the technical department is a given; that he's a good filmmaker is debatable. 2. Its tentacles are still wriggling in my memory, as if I just ate something that should never have been served in the first place. 3. There's a lot less here than meets the eye. 4. As played by Choi Min-shik, Dae-su attains tragic stature. He's like a shaggy King Lear undone by his own foolishness. 5. Park has a strong visual style and a near-surrealistic noir touch, but unraveling the mystery scarcely repays sitting through his relentless rounds of gut-wrenching violence. 6. Definitivamente no para todos los gustos, esta violenta y asombrosa película coreana promete convertirse en una de las verdaderas sorpresas del ańo. 7. Quite an achievement then, and well worthy of its Cannes prize. 8. Not to everyone's tastes, but if you have a strong stomach, OldBoy is sure to impress. 9. Be amazed at my cruel virility. Feel the pain. Oh yeah. 10. Oldboy is a delirious, confronting ride, a movie full of visceral shocks and aesthetic pleasures: it has an explosive immediacy and a persistent afterlife, a lingering impact that is hard to shake. Consensus: Violent and definitely not for the squeamish, Park Chan-Wook's visceral Oldboy is a strange, powerful tale of revenge. Q: 1. It's really...GIRLY! 2. ...mindless situation comedy entertainment. 3. It's only a matter of time before Lizzie discovers that "love will lift us up where we belong" but The Lizzie McGuire Movie has already done its damage by then. 4. Its cute story and its adorable lead, Hilary Duff as Lizzie, will eventually win you over. 5. The adventure is a pointless bore; it's completely predictable and sends the wrong message. 6. Little more than an adolescent wish-fulfillment fantasy so familiar that it's like pre-chewed bubble gum. 7. A clever, agreeably weightless theatrical outing. 8. The film is corny, predictable, and manipulative to the point that you feel like there's electrodes attached from the screen to your brain, but, by the end of this film, I'll be damned if I didn't feel genuine affection for it and Lizzie in particular. 9. If the hordes of screaming kids in the audience at the screening I saw are any indication, The Lizzie McGuire Movie hits its mark. 10. If you fit into its target demographic, 'The Lizzie McGuire Movie' is inoffensive fluff. If your age surpasses your shoe size, you're better off re-grouting your tile. Based on these individual reviews, what is the critic consensus? A: Consensus: Harmless piece of fluff that ought to satisfy fans of the TV show. 1. The sheer technical brilliance of the battle sequences and martial arts showdowns is mind-blowing -- this is the kind of movie that's so visually dynamic that it's compelling even when we could care less about the people on screen. 2. The ever-luminous Gong Li and the wickedly nonchalant Chow Yun-Fat are wonderful together. 3. The morbid grandiosity of Curse of the Golden Flower is its own distinctive accomplishment, another remarkable chapter in the career of Asia's most important living filmmaker. 4. A visually sumptuous action drama by Zhang Yimou, who proves himself to be the Busby Berkeley of our times. 5. Eye-popping. One of the year's most spectacularly visual treats. It has wide-screen images that are beyond astounding. 6. Curse of the Golden Flower is a triumph of set dressing, cinematography and costuming. Now if only it were compelling. 7. The year's most operatic and visually lavish film. 8. Few filmmakers could produce so grand a spectacle, but [director] Zhang used to be good for more than just eye candy. 9. Amidst all of this excess, an actor can too easily disappear, or be reduced to a hanger for a costume. But Gong Li, the standout in the cast, does wonders with her melodramatic role. 10. Its overabundance is more blessing than curse, however, provided you can suspend disbelief over a campy plot and focus on one lush, eye-popping scene after another. Consensus: Melodrama, swordplay, and CG armies -- fans of martial arts epic will get what they bargain for, though the baroque art direction can be both mesmerizing and exhaustively excessive. Q: 1. Woody, Buzz & Co. triumph again but lose a bit of magic. 2. Pixar have once again reminded me that there is a way to create a film that not only appeals to just about everyone, but also prove that three-quels need not suck. 3. You can intellectualise and even defend the reasons why the film is disappointing, but that doesn't stop it being disappointing. 4. It's still more inventive, clever and laugh-out-loud funny than any other movie out there now. 5. ... this is [Pixar's] prison film, and they load it with suspense, clever references, invention and action. 6. While this is a good sequel, I wish it had had more of the emotion that had made the first two films so memorable. 7. "Toy Story 3" is a bit on the safe side, hemmed in by its concept from offering the imagination that makes the best Pixar has to offer so good ... but the filmmakers still understand real heart. 8. I can understand the creators not wanting to sugarcoat life merely because the colors are brighter and voices chirpier, but why is Toy Story 3 so intent on being such a manipulative downer? 9. Toy Story 3 is probably the best of the series ... 10. Another worthy entry in a much-heralded series that amounts to a prison break story as exciting in its own way as Steve McQueen's "The Great Escape". Based on these individual reviews, what is the critic consensus? A: Consensus: Deftly blending comedy, adventure, and honest emotion, Toy Story 3 is a rare second sequel that really works. 1. Feels like an eternity, making one wish the killer would hurry up so that the end credits can roll and we could all be done with this bloody mess. 2. Although much blood is spilled and splattered, precious little suspense is generated during See No Evil. 3. There's a glaring lack of plot, characterization, plausible dialogue and decent acting. 4. With its run-down, abandoned setting, which is lousy with roaches, rats and flies, it's just dark, dirty and gross. 5. If it carries the faint odour of freshly carved teenage flesh, plus a soupcan of plucked eyeball, then you've sniffed out See No Evil. 6. Devoid of suspense. I was bored. 7. It's unoriginal with no rhyme or reason, and never takes advantage of its golden opportunity to provide us with an entertaining story. 8. Sickeningly violent nonsense. 9. So undeniably nightmarish it achieves its own ugly integrity... 10. It's deliberate exploitation, but not clever enough to be much fun.
Consensus: See No Evil is packed with cliches from countless other teen slasher films, making for a predictable, scare-free waste of time.
Given the task definition and input, reply with output. In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Show the number of documents with document type code CV or BK.
SELECT count(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK"
1. There isn't a shred of subtlety in their clowning -- or in any part of the movie, which clumsily shoots for operatic highs and lows. But with so many borrowed bits and pieces, the only feeling it successfully evokes is déjŕ vu. 2. The Warrior's Way is a visually inspired multi-genre amalgamation, a borderline-surreal folly that suggests a martial-arts action-adventure co-directed by Sergio Leone and Federico Fellini. 3. Set in a fantastical ghost town with a resident circus troupe and filmed on studio sets, it looks like a Sergio Leone epic as staged by Fellini, or by Lars von Trier. 4. If you can't figure out why a clown shooting a ninja is forty kinds of awesome, it's not going to waste time explaining it to you. 5. An overwrought, highly-stylized, visually surreal, cliche-filled, wild and wacky kung-fu fantasy. 6. "That was completely retarded, and I would absolutely watch it again." Indeed. 7. Your first clue that you're about to see the worst flick of 2010 is the TWO Nicholas Cage trailers you endure before the movie even starts. 8. My three-word synopsis is my three-word review...cowboys and ninjas. 9. As awkward a fusion as the title is generic. 10. To damn his agreeable campfest with faint praise, The Warrior's Way is easily the best circus-themed, martial-arts-heavy action-comedy oater of the year. Based on these individual reviews, what is the critic consensus?
Perfectly, thoroughly divisive, The Warrior's Way will either be delightful or unbearable, depending on your tolerance for surreal, shamelessly over the top collisions of eastern and western clichés.
In this task, you are given a year. You need to check if it is a leap year or not. A year may be a leap year if it is evenly divisible by 4. Years that are divisible by 100 (century years such as 1900 or 2000) cannot be leap years unless they are also divisible by 400. Return 1 if it is a leap year, else return 0. 1610 0 1400 0 1516
1
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Example input: Find the id and city of the student address with the highest average monthly rental. Example output: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 Example explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example. Q: Who are the friends of Alice that are doctors? A:
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'
You will be given a definition of a task first, then some input of the task. In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated. Set1: '{3, 7, 8, 11, 14, 15, 17, 20}', Set2: '{1, 3, 4, 11, 12, 15, 20}'. How many elements are there in the union of Set1 and Set2 ? Output:
11
In medical studies, the efficacy of medical treatments (called interventions) is evaluated within a group of study participants. You will be given a sentence of a study report in which your task is to list the phrases that describe the intervention(s) of the study. You should list the phrase in the same order that they appear in the text, separated by commas. If no information about the interventions is mentioned, just answer with "not found". Interventions are: a specific drug, surgery, talking therapy, a lifestyle modification, control or placebo treatment. Do not include details, dosages, frequency and duration, intervention mentions that are not in an informative span of text. [Q]: Identifying patients at high risk for neutropenic complications during chemotherapy for metastatic breast cancer with doxorubicin or pegylated liposomal doxorubicin : the development of a prediction model . [A]: doxorubicin, pegylated liposomal doxorubicin [Q]: The effect of weight training on bone mineral density and bone turnover in postmenopausal breast cancer survivors with bone loss : a 24-month randomized controlled trial . [A]: not found [Q]: One of the reasons physiotherapy services are provided to emergency departments ( EDs ) and emergency extended care units ( EECUs ) is to review patients ' mobility to ensure they are safe to be discharged home . [A]:
not found
In this task you will be given a list of integers. You should remove all of the integers that are divisible by 3 from the list. If every integer in the input list is divisible by 3 then an empty list should be returned. Zero is divisible by 3. Q: [-74, -11, 36, 90, -79, -5, -51] A:
[-74, -11, -79, -5]
You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format. Q: 12:47 Hrs A:
12:47 PM
Given a statement about date and time, state whether the statement is true or false. The number of date/time operands in the statement ranges between 2 and 3. Let's say the values are denoted by t1, t2 and t3. The statements follow one of the following ten templates: 't1 occurs before t2, t1 doesn't occur before t2, t1 occurs after t2, t1 doesn't occur after t2, t1 occurs between t2 and t3, t1 doesn't occur between t2 and t3, t1 occured before t2 but after t3, t1 occured after t2 but before t3, t1 didn't occur before t2 but after t3, t1 didn't occur after t2 but before t3'. The output should be either 'True' or 'False'. One example: 03:40:40 PM doesn't occur between 5:35:38 and 07:58:59 AM Solution is here: False Explanation: The output of 'False' is correct as the input statement is false, since 03:40:40 PM occurs after 07:58:89 AM and not between 5:35:38(AM) and 07:58:59 AM Now, solve this: 04:58:15 occured after 17:06:14 but before 07:46:49 PM Solution:
False
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red. Q: mold A:
container
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. One example is below. Q: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . A: Tense Rationale: The verbs in this example are changed from past tense to present tense. Q: original sentence: My meeting started at 4:00 and I needed to catch the train at 4:30 , so there wasn't much time . Luckily , it was short , so it worked out . paraphrase: My meeting starts at 4:00 and I need to catch the train at 4:30 , so there isn't much time . Luckily , it is short , so it works out . A:
Tense
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task. We would like you to assess the QUALITY of each of the following argument (discussing Gay Marriage) 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 gay marriage. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of gay marriage. It is usually just as religiously important to same-sex couples to be married as it is for opposite-sex couples, and no one should be able to tell those people that the government cannot recognize their relationship. Solution: Valid Why? It is a clear argument that supports gay marriage by saying it is as religiously important as opposite-sex marriage. New input: The lack of freedom is present in that people do not have the right to marry the person of their choosing. Solution:
Valid
Instructions: In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy". Input: 06/05/1822, input_format=mm/dd/yyyy Output:
05/06/1822
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: [0,1,0,2,5,1] Example output: [2,5] Example explanation: The only elements that are not duplicated is 2 and 5. This is a good example. Q: [3, 1, 4, 7, 7] A:
[3, 1, 4]
For the given English description, write an SQL command such that it accomplishes every step. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Q: Did M1 employ a costume designer and employ M2 A: SELECT count(*) WHERE { ?x0 a ns:film.film_costumer_designer . M1 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 . M1 ns:business.employer.employees/ns:business.employment_tenure.person M2 } **** Q: Did M5 's star edit and write M0 , M1 , M2 , M3 , and M4 A: SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.film M5 . ?x0 ns:film.editor.film M0 . ?x0 ns:film.editor.film M1 . ?x0 ns:film.editor.film M2 . ?x0 ns:film.editor.film M3 . ?x0 ns:film.editor.film M4 . ?x0 ns:film.writer.film M0 . ?x0 ns:film.writer.film M1 . ?x0 ns:film.writer.film M2 . ?x0 ns:film.writer.film M3 . ?x0 ns:film.writer.film M4 } **** Q: Did M1 employ M2 , employ a film editor , employ M3 , M4 , and M5 , and employ M6 A:
SELECT count(*) WHERE { ?x0 a ns:film.editor . M1 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 . M1 ns:business.employer.employees/ns:business.employment_tenure.person M2 . M1 ns:business.employer.employees/ns:business.employment_tenure.person M3 . M1 ns:business.employer.employees/ns:business.employment_tenure.person M4 . M1 ns:business.employer.employees/ns:business.employment_tenure.person M5 . M1 ns:business.employer.employees/ns:business.employment_tenure.person M6 } ****
In this task, you will be given sentences in which you have to recognize the name of the body cells. A cell is a mass of cytoplasm that is bound externally by a cell membrane. Usually microscopic in size, cells are the smallest structural units of living matter and compose all living things. Although there might be several correct answers, you need to write one of them. Let me give you an example: HeLa cells were first treated with 250 mug / ml Trail followed by pulse labeling of newly synthesized proteins with [ 35S ] methionine. The answer to this example can be: HeLa cells Here is why: HeLa cells are the first immortal human cell line. It should be tagged. OK. solve this: No evidence for an influence of the human platelet antigen - 1 polymorphism on the antiplatelet effects of glycoprotein IIb / IIIa inhibitors . Answer:
platelet
Q: The given sentence contains a typo which could be one of the following four types: (1) swapped letters of a word e.g. 'niec' is a typo of the word 'nice'. (2) missing letter in a word e.g. 'nic' is a typo of the word 'nice'. (3) extra letter in a word e.g. 'nicce' is a typo of the word 'nice'. (4) replaced letter in a word e.g 'nicr' is a typo of the word 'nice'. You need to identify the typo in the given sentence. To do this, answer with the word containing the typo. Teenagers skateboard on the concrete outside a commercial buildoing. A:
buildoing.
Detailed Instructions: Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Q: I_TURN_LEFT I_TURN_LEFT I_WALK I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN A:
run right thrice after walk opposite left
Detailed Instructions: In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries. Q: United States A:
North America
You will be given a definition of a task first, then some input of the task. In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. What are the names of all of Bob's friends? Output:
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
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, 4, 5, 9, 16}', Set2: '{3, 17, 11}'. How many elements are there in the union of Set1 and Set2 ? A: 8 **** Q: Set1: '{17, 2}', Set2: '{11}'. How many elements are there in the union of Set1 and Set2 ? A: 3 **** Q: Set1: '{16, 18, 7}', Set2: '{11, 14, 7}'. How many elements are there in the union of Set1 and Set2 ? A:
5 ****
Detailed Instructions: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Q: THEM: what would you like YOU: 2 hats and 1 ball THEM: no can do YOU: ok so in a negotiation you counter THEM: you take one book only YOU: i dont need the book THEM: then one hat one ball for you YOU: 2 hats rest for you THEM: deal. A:
Yes
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. The argument for the death penalty as a deterrent has been proved wrong by the implementation of it through history.
Valid
Detailed Instructions: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the alphabetical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no alphabetical element is in the list. See one example below: Problem: ['238', 'h', '92', 'U', '2799'] Solution: 2, 4 Explanation: Here, the alphabetical elements in the input list are 'h' and 'U' and they are at positions '2' and '4', respectively. Problem: ['q', '2975', 'n', '5693', 'M', '7897', 'd', '3509', 'M', 'g', 'n', '3719', '9037', 'T', 'Z', '4801', '4705', '3095', '3327', '9405'] Solution:
1, 3, 5, 7, 9, 10, 11, 14, 15
Detailed Instructions: You are given a short text as a title. Your task is to generate a poem as output that is related to the given title and should feel like written by kids. The output should be a run-on sentence (two or more complete sentences connected without any punctuation). The poem should not be too long or too complex, because it should feel like it is written by younger person without high level of literature education. Q: Dustin A:
i have a freind he be very nice his name be dustin he have a big fro he think we be bros his hair be curly so i give him a swirly he be very cool we meat at school when it be sunny he be very funny
In this task, you will be given a list. The list is several integers and letters separated with a comma, written within a []. You can create new lists by dropping one of the items in the input list. Your task is to write a list containing all the possible lists you can make by dropping one item from the input list. For example, if the input list contains two items, you can drop one of the items each time. So the output should be a list comprising two inner lists that you have created by decreasing the items. [Q]: ['3', 'y', 'v'] [A]: [['3', 'y'], ['3', 'v'], ['y', 'v']] [Q]: ['7', '8', 'u', '9', 'n', '5'] [A]: [['7', '8', 'u', '9', 'n'], ['7', '8', 'u', '9', '5'], ['7', '8', 'u', 'n', '5'], ['7', '8', '9', 'n', '5'], ['7', 'u', '9', 'n', '5'], ['8', 'u', '9', 'n', '5']] [Q]: ['j', '3', 'D'] [A]:
[['j', '3'], ['j', 'D'], ['3', 'D']]
In this task, you are given a year. You need to check if it is a leap year or not. A year may be a leap year if it is evenly divisible by 4. Years that are divisible by 100 (century years such as 1900 or 2000) cannot be leap years unless they are also divisible by 400. Return 1 if it is a leap year, else return 0. Example: 1644 Example solution: 1 Example explanation: 1644 is a leap year as 1644 is divisible by 4. Problem: 1957
Solution: 0
For the given English description, write an SQL command such that it accomplishes every step. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Did M1 star a film producer , star M2 , M3 , and M4 , star M5 , and star M6
SELECT count(*) WHERE { ?x0 a ns:film.producer . M1 ns:film.film.starring/ns:film.performance.actor ?x0 . M1 ns:film.film.starring/ns:film.performance.actor M2 . M1 ns:film.film.starring/ns:film.performance.actor M3 . M1 ns:film.film.starring/ns:film.performance.actor M4 . M1 ns:film.film.starring/ns:film.performance.actor M5 . M1 ns:film.film.starring/ns:film.performance.actor M6 }
Detailed Instructions: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Q: THEM: i would love the 4 hats YOU: how about i give you three of the hats and one ball? and i take one book and one hat? THEM: sure. A:
Yes
Teacher:In this task you're given two statements in Marathi. You must judge whether the second sentence is the cause or effect of the first one. The sentences are separated by a newline character. Output either the word 'cause' or 'effect' . Teacher: Now, understand the problem? Solve this instance: ती महिला सार्वजनिक ठिकाणांपासून दूरच राहिली. ती संक्रामक होती. Student:
cause

Dataset Card for "flan2022-4096-128-tasks-logdet-100000-instances-gc"

More Information needed

Downloads last month
37

Collection including kowndinya23/flan2022-4096-128-tasks-logdet-100000-instances-gc