prompt
stringlengths 105
7.32k
| response
stringlengths 1
1.45k
|
---|---|
Q: This task is to find the number of 'For' loops present in the given cpp program.
/*
* fengjie.cpp
*
* Created on: 2013-11-23
* Author: sony
*/
int sum;
void f(int x,int i){
if (x == 1) sum++;
for(;i<=x;i++)
if (x%i == 0) f(x/i,i);
return;
}
int main(){
int t,a,i=2;
cin>>t;//????????
for (a = 0; a<t ; a++){
int x;
cin >> x;
int ans = 1;
for(i = 2; i<sqrt(x) ; i++){
sum = 0;
if(x%i == 0) f(x/i,i);
ans = ans + sum;
}
cout<<ans<<endl;
}
return 0;
}
A: | 3 |
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
[EX Q]: Command: eq { count { filter_greater { all_rows ; capacity ; 10000 } } ; 3 }, interpretation: select the rows whose capacity record is greater than 10000 . the number of such rows is 3 .
[EX A]: yes
[EX Q]: Command: greater { hop { filter_eq { all_rows ; date ; 13 may 1998 } ; weight ( kg ) } ; hop { filter_eq { all_rows ; date ; 23 aug 1997 } ; weight ( kg ) } }, interpretation: select the row whose attendance record of all rows is maximum . the date record of this row is november 14 .
[EX A]: no
[EX Q]: Command: eq { count { filter_less { filter_less { all_rows ; away team score ; 20 } ; crowd ; 20000 } } ; 3 }, interpretation: select the row whose candidates record of all rows is 1st maximum . the incumbent record of this row is keith ellison .
[EX A]: | no
|
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_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_WALK
A: | walk right after run right twice |
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Input: Consider Input: [45, 920, 443]
Output: [32, 1024, 512]
Input: Consider Input: [21, 1056, 2408, 4999, 20, 56, 4, 62, 496, 3292, 3804, 7, 57, 4, 48, 459]
Output: [16, 1024, 2048, 4096, 16, 64, 4, 64, 512, 4096, 4096, 8, 64, 4, 64, 512]
Input: Consider Input: [83, 716, 2048, 2638]
| Output: [64, 512, 2048, 2048]
|
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.
Let me give you an example: Set1: '{2, 3, 6, 9, 10, 14, 15, 20}', Set2: '{3, 5, 7, 9, 12, 15, 16}'. How many elements are there in the union of Set1 and Set2 ?
The answer to this example can be: 12
Here is why: The union of Set1 and Set2 is {2, 3, 5, 6, 7, 9, 10, 12, 14, 15, 16, 20}. It has 12 elements. So, the answer is 12.
OK. solve this:
Set1: '{2, 6, 7, 11, 12, 14, 15, 16, 19}', Set2: '{8, 7}'. How many elements are there in the union of Set1 and Set2 ?
Answer: | 10 |
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
One example: [47, 444, 859, 530, 197, 409]
Solution is here: [47, 859, 197, 409]
Explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Now, solve this: [699, 881, 23, 37, 930, 939, 23, 600, 717, 409, 617, 750, 523, 503]
Solution: | [881, 23, 37, 23, 409, 617, 523, 503] |
Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Input: Fact: high pressure systems cause pollution to disperse.
Output: | What cause pollution to disperse? |
Detailed Instructions: 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.
Q: [-26, -63, 58, -83]
A: | 20 |
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Example input: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Example output: Advertising
Example explanation: The given policy text states that it uses user information for 'advertising' explicitly
Q: An unnamed third party does receive unspecified information about you for marketing purposes. The data is personally identifiable.
A: | Marketing |
Q: 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' .
मी गटातून स्वत: ला माफ केले.
माझा फोन वाजला.
A: | cause |
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
Answer: | Very very very anyeonghansayo |
Detailed Instructions: 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.
Q: [4, 3, 6, 4, 2, 2, 2]
A: | [3, 6] |
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: My wife had just accepted a job offer.
Initial Context: Now, both of us worked full time.
Original Ending: That meant that my dog was alone for nine hours a day. We started to feel bad for him. Thus, I quit my job so I could stay home with the dog.
Counterfactual Context: Now, I was finally able to travel.
A: | That meant that my dog was alone for nine hours a day. We started to feel bad for him. Thus, I quit traveling so I could stay home with the dog. |
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Q: Command: and { only { filter_eq { all_rows ; finish ; 10 } } ; eq { hop { filter_eq { all_rows ; finish ; 10 } ; year } ; 1972 } }, interpretation: the average of the total record of all rows is 152.8 .
A: | no |
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Q: Sentence: Carol St. Clair EB 3889 713-853-3989 ( Phone {{ ) }} 713-646-3393 ( Fax ) [email protected]
Word: )
A: -RRB-
****
Q: Sentence: - Stipulation -ECT-KEDNE re IGTS & Tennessee Cap Releases -FINAL.doc - BLACKLINE {{ -Stip }} -ECT-KEDNE re Cap Releases -2-F.doc
Word: -Stip
A: GW
****
Q: Sentence: Subject {{ : }} Re : NASA IS A WASTE ! From : jaqamofino - ga on 26 Apr 2005 06:02 PDT
Word: :
A: | :
****
|
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Ex Input:
Sentence: If the snake is not {{ pregnant }} or shedding , and its enclosure is properly equipped , a loss of appetite probably signals a beginning of hibernation .
Word: pregnant
Ex Output:
JJ
Ex Input:
Sentence: At no time during the conversation did the words , " {{ I }} 'm sorry " ever come out of his mouth .
Word: I
Ex Output:
PRP
Ex Input:
Sentence: With growing economic and military power , India will be dependent on smaller nations in the region increasingly {{ to }} maintain regional security .
Word: to
Ex Output:
| TO
|
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
[EX Q]: এই মালাউনের বাচ্চারা ভারতের দালাল সালারা
[EX A]: religious
[EX Q]: নুরদের হাত ধরে এদেশে বদরুল লীগের পতন হবে
[EX A]: non-religious
[EX Q]: আমরা চাই ভারতকে ধ্বংস করা হোক । ভারতের সাহস থাকে পাকিস্থানের সাথে যুদ্ধ করুক । দেখি কীভাবে ভারতের গরু মা ভারতকে রক্ষা করবে ।
[EX A]: | non-religious
|
In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer:
name: The Eagle,...
eatType: restaurant, coffee shop,...
food: French, Italian,...
priceRange: cheap, expensive,...
customerRating: 1 of 5 (low), 4 of 5 (high)
area: riverside, city center, ...
familyFriendly: Yes / No
near: Panda Express,...
The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect.
Q: eggs and beans are low priced breakfasts at Strada nearby the Rainbow Vegetarian Café.
A: | name[Strada], food[English], priceRange[moderate], customer rating[1 out of 5], familyFriendly[yes], near[Rainbow Vegetarian Café] |
Detailed Instructions: In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order.
Q: [6, 1, 5, 6, 4, 3, 9, 8, 2] , [2, 9, 8, 10, 9, 10, 6, 4, 8]
A: | [2, 4, 6, 8, 9] |
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy.
Q: Let me begin with my parents.
A: | Počinje s mojim roditeljima. |
Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
Q: better
A: | worse |
Detailed Instructions: Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
Q: The more I move and engage with others the better .
A: | no |
Given the task definition and input, reply with output. 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.
Premise: There was a bus strike in Amy's town.
Initial Context: She had a hard time getting to and from work.
Original Ending: Her boss suggested she transfer to a store closer to home. Amy sadly agreed with her boss. She said her goodbyes and left her job for the last time.
Counterfactual Context: Luckily, she took the train and was unaffected.
| Her boss was glad at leas she could make it in on time. Amy was given extra time off as a reward. She said her goodbyes as she got ready for a long weekend. |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
One example: [1, 2, 3]
Solution is here: [0.167, 0.333, 0.500]
Explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Now, solve this: [31.986, 212.441, 15.958]
Solution: | [0.123 0.816 0.061] |
Detailed Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Q: Fact: Plants can reduce fatigue during the daytime.
A: | When can plants reduce fatigue? |
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: (Laughter) The seeds are then planted, then grown.
A: | Volim ribu i rajčicu, ali ovo je naprosto zastrašujuće. |
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: heart
Entity 2: pulse
| Solution: yes |
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.
Example input: 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.
Example output: Ž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.
Example explanation: The translation correctly preserves the characters in Croatian.
Q: Everyone who's been through this -- and I'm here to tell you, once you have a child at home, your job better be really good to go back, because it's hard to leave that kid at home -- your job needs to be challenging.
A: | Svatko tko je prošao kroz to -- i ovdje sam da vam kažem, jednom kada u kući imate dijete, vaš posao mora biti jako dobar kako bi se mogli vraćati, jer je teško ostaviti dijete kod kuće -- vaš posao mora biti izazovan. |
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
[Q]: Netherlands
[A]: .nl
[Q]: Brittany
[A]: .bzh
[Q]: Republic of the Congo
[A]: | .cg
|
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
Q: ohhohnnnhhhh
A: hnnnh
****
Q: eofoefeffoef
A: eofoe
****
Q: xqxqqqqqqqxqqxx
A: | qxqqqqqqqxq
****
|
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
Given 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'.
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 .
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)
Why? 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.
New input: Un incendi que s' ha declarat aquesta tarda al costat de la via del tren al terme municipal de Vinaixa , ha provocat l' aturada de dos trens regionals en ambdues direccions .
Solution: | Un (O) incendi (O) que (O) s' (O) ha (O) declarat (O) aquesta (O) tarda (O) al (O) costat (O) de (O) la (O) via (O) del (O) tren (O) al (O) terme (O) municipal (O) de (O) Vinaixa (B-LOC) , (O) ha (O) provocat (O) l' (O) aturada (O) de (O) dos (O) trens (O) regionals (O) en (O) ambdues (O) direccions (O) . (O) |
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' .
स्कंकने कुत्र्यावर फवारणी केली.
कुत्र्याने एक गंध वास सोडला. | effect |
Q: This task is to find the number of 'For' loops present in the given cpp program.
int sum=0;
void f(int n,int i)
{
if(n==1) sum++;
while(i<=n)
{
if(n%i==0) f(n/i,i);
i++;
}
return ;
}
int main()
{
int t=0;
cin>>t;
while(t--)
{
int n=0;
cin>>n;
int i=2,result=1;
for (i=2;i<=n/2;i++) {
if(n%i==0)
{
sum=0;
f(n/i,i);
result=result+sum;
}
}
cout<<result<<endl;
}
return 0;
}
A: | 1 |
Detailed Instructions: In this task, you are given two questions about a domain. Your task is to combine the main subjects of the questions to write a new, natural-sounding question. For example, if the first question is about the tallness of the president and the second question is about his performance at college, the new question can be about his tallness at college. Try to find the main idea of each question, then combine them; you can use different words or make the subjects negative (i.e., ask about shortness instead of tallness) to combine the subjects. The questions are in three domains: presidents, national parks, and dogs. Each question has a keyword indicating its domain. Keywords are "this national park", "this dog breed", and "this president", which will be replaced with the name of an actual president, a national park, or a breed of dog. Hence, in the new question, this keyword should also be used the same way. Do not write unnatural questions. (i.e., would not be a question someone might normally ask about domains). Do not write open-ended or subjective questions. (e.g., questions that can be answered differently by different people.) If you couldn't find the answer to your question from a single Google search, try to write a different question. You do not have to stick with the original question word for word, but you should try to create a question that combines the main subjects of the question.
Q: What party was this president part of? Who did this president win the presidential election against?
A: | What party did this president belong to and who did they defeat in the election? |
Given the task definition and input, reply with output. In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
JmTFzJqcsEQHTbjeJrM, ToTsEQHTbjePgsBxPl
| JmTFzJqcbeehjqstJrM, ToTbeehjqstPgsBxPl |
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).
Q: Entity 1: pollinia
Entity 2: pollen
A: | yes |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
One example is below.
Q: difficult
A: No
Rationale: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Q: lie
A: | jai |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [191, 751, 853, 73, 823, 757, 443, 354, 379, 61, 652, 47, 937, 768]
A: | [191, 751, 853, 73, 823, 757, 443, 379, 61, 47, 937] |
In this task, you are given a string S and a character c separated by a comma. You need to check if the character c is present in S or not. Return 1 if it is present, else return 0.
Ex Input:
vEdrsTGzzKTRVyTqcWqzOwCA, A
Ex Output:
1
Ex Input:
XqGJqRAtckWLXOwtqOKUTfBda, T
Ex Output:
1
Ex Input:
XOMlQadplcffvFAmqczhNV, S
Ex Output:
| 0
|
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.
Input: Consider Input: [8, -59, 82, 76]
Output: 6
Input: Consider Input: [-10, -45, 9, 26, 4, 42, -54, -6, -63]
Output: 4
Input: Consider Input: [-31, 46, -6]
| Output: 25
|
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.
killing someone who has raped them or hurt a family member, while some of these reasons would definitely require being locked up the death penalty does not seem right for alot of situations
Output: | Valid |
TASK DEFINITION: Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
PROBLEM: window
SOLUTION: doorway
PROBLEM: whisk
SOLUTION: take
PROBLEM: dinner
SOLUTION: | meal
|
Instructions: Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
Input: Yay! I've been here waiting for you the whole time.
Output: | You were right under my nose, but you should have been under Darlene's nose. |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Input: Consider Input: Count the number of courses with more than 2 credits.
Output: SELECT count(*) FROM COURSE WHERE Credits > 2
Input: Consider Input: Find the name of persons who are friends with Alice for the shortest years.
Output: SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice')
Input: Consider Input: What are the names of the colleges that are larger than at least one college in Florida?
| Output: SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL')
|
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
One example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Solution is here: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Now, solve this: [{'first': 5, 'second': 8}, {'first': -56, 'second': 3}, {'first': -82, 'second': 26}, {'first': -6, 'second': 71}]
Solution: | [{'first': -82, 'second': 26}, {'first': -56, 'second': 3}, {'first': -6, 'second': 71}, {'first': 5, 'second': 8}] |
Q: 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.
Mongolia
A: | Eastern Asia |
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Example: [16, 205, 171, 2, 9, 317]
Example solution: [16, 256, 128, 2, 8, 256]
Example explanation: Every integer in the input list is rounded to the nearest power of 2. The number 2 and 16 are in the input list and both are a power of 2, therefore rounding to the closest power of 2 returns the same number. This is a good example.
Problem: [183, 1594, 698]
| Solution: [128, 2048, 512] |
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Example: [16, 205, 171, 2, 9, 317]
Example solution: [16, 256, 128, 2, 8, 256]
Example explanation: Every integer in the input list is rounded to the nearest power of 2. The number 2 and 16 are in the input list and both are a power of 2, therefore rounding to the closest power of 2 returns the same number. This is a good example.
Problem: [195, 1252, 2889, 3883, 20, 38, 4, 74, 1707, 4825, 1407, 21, 83, 2, 63, 281]
| Solution: [256, 1024, 2048, 4096, 16, 32, 4, 64, 2048, 4096, 1024, 16, 64, 2, 64, 256] |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [11, 821, 570, 692, 966]
A: | [11, 821] |
Detailed Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
Q: রাজধানীর গেহুারিয়ায় মসজিদ নির্মাণে হিন্দুদের বাধা, এলাকায় টানটান উত্তেজনা
A: | religious |
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: 10/23/1675, input_format=mm/dd/yyyy
Output: | 23/10/1675 |
In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Example Input: Cambodia
Example Output: Constitutional Monarchy
Example Input: Mauritania
Example Output: Republic
Example Input: Uruguay
Example Output: | Republic
|
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 = SYhqTUx8zg2.MsAAv.SuZ!9gYS
A: | 6 |
Detailed Instructions: In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
Problem:YfLTGYokjMpXjbHNWBLWMnPiWAylEoHGoQabKQcCIT, gBsCpokjMpXjbHNWBLWMnPixZAV
Solution: | YfLTGYbbhijjklmmnnoppwwxWAylEoHGoQabKQcCIT, gBsCpbbhijjklmmnnoppwwxxZAV |
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
[-91.73 45.024 -97.524 33.07 19.612 65.841 79.626]
-97.524
[-95.075 18.123 -20.399 50.388 66.18 -63.503 99.341 59.169]
99.341
[ 85.261 -76.934 24.466 -50.314]
| 85.261
|
You will be given a definition of a task first, then some input of the task.
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
[40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180]
Output: | 1 |
Detailed Instructions: In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Q: [181, 1864, 2403, 1278, 10, 71, 2, 81, 1948, 3122, 672, 10, 43, 4]
A: | [128, 2048, 2048, 1024, 8, 64, 2, 64, 2048, 4096, 512, 8, 32, 4] |
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.
One example: I_TURN_LEFT I_JUMP
Solution is here: jump left
Explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Now, solve this: I_TURN_LEFT I_JUMP I_RUN I_RUN
Solution: | run twice after jump left |
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_TURN_LEFT I_TURN_LEFT I_TURN_RIGHT I_TURN_RIGHT I_RUN
A: | turn around left and run opposite right |
Detailed Instructions: In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Q: [{'first': -85, 'second': -6}, {'first': -18, 'second': -27}, {'first': 18, 'second': 99}, {'first': -82, 'second': -28}, {'first': -31, 'second': 18}, {'first': 46, 'second': -92}, {'first': -97, 'second': -74}, {'first': 12, 'second': 77}, {'first': -11, 'second': 95}, {'first': -83, 'second': 97}]
A: | [{'first': -97, 'second': -74}, {'first': -85, 'second': -6}, {'first': -83, 'second': 97}, {'first': -82, 'second': -28}, {'first': -31, 'second': 18}, {'first': -18, 'second': -27}, {'first': -11, 'second': 95}, {'first': 12, 'second': 77}, {'first': 18, 'second': 99}, {'first': 46, 'second': -92}] |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
[EX Q]: How many times has the student Linda Smith visited Subway?
[EX A]: SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway"
[EX Q]: Show the names and heights of buildings with at least two institutions founded after 1880.
[EX A]: SELECT T1.name , T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING count(*) >= 2
[EX Q]: What are the names of all instructors in the Comp. Sci. department?
[EX A]: | SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.'
|
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: comet
Entity 2: antibody
A: | no |
TASK DEFINITION: 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.
PROBLEM: Hong Kong
SOLUTION: Eastern Asia
PROBLEM: Sierra Leone
SOLUTION: Western Africa
PROBLEM: United Arab Emirates
SOLUTION: | Middle East
|
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Example: [47, 444, 859, 530, 197, 409]
Example solution: [47, 859, 197, 409]
Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Problem: [796, 439, 877, 506, 967, 591, 857, 458, 93, 940, 859, 821, 176, 404, 839, 61, 102, 499, 729, 929]
| Solution: [439, 877, 967, 857, 859, 821, 839, 61, 499, 929] |
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
Q: An unnamed third party does collect on the first party website or app your unspecified personal information for an additional (non-basic) service or feature.
A: | Additional service/feature |
Instructions: In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
Input: zNfkMhKQebgbnZFRobyCnCcMHdtQuianzuzDSEMlw, RPOEiobgbnZFRobyCnCcMHdLFcTotGgrVBLNG
Output: | zNfkMhKQebbbcccdfghmnnoryztQuianzuzDSEMlw, RPOEiobbbcccdfghmnnoryzLFcTotGgrVBLNG |
Instructions: Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase.
Input: 첫 번째``Peach ''(린다 그린)와의 세 번째 히트 곡이었습니다.
Output: | C'était leur troisième succès avec la première "Peaches", Linda Greene. |
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations.
Input: Consider Input: ¿puede encontrarme un "mcdonalds" en mi zona?
Output: can you find me a " mcdonalds " in my area ?
Input: Consider Input: muéstreme restaurantes "mexican" de 5 estrellas
Output: show me 5 star " mexican " restaurants
Input: Consider Input: ¿dónde está el "mcdonald 's" más cercano?
| Output: where is the nearest " mcdonald 's " ?
|
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
Q: I also actively go through textbook problems , avoiding the answer key until I 'm done with at least a handful of problems .
A: | yes |
Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'.
One 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 .
Solution is here: 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)
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.
Now, solve this: El Funicular de la Santa Cova ha estat durant un any sense funcionar arran dels treballs de reparació iniciats després dels aiguats de l' any passat .
Solution: | El (O) Funicular (B-MISC) de (I-MISC) la (I-MISC) Santa (I-MISC) Cova (I-MISC) ha (O) estat (O) durant (O) un (O) any (O) sense (O) funcionar (O) arran (O) dels (O) treballs (O) de (O) reparació (O) iniciats (O) després (O) dels (O) aiguats (O) de (O) l' (O) any (O) passat (O) . (O) |
Detailed Instructions: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Q: oneninesevenninethreesixonezero
A: | 19793610 |
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 input: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence .
Example output: Tense
Example explanation: The verbs in this example are changed from past tense to present tense.
Q: original sentence: Billy cried because Toby wouldn't share his toy . paraphrase: Billy inconsolably cried because Toby absolutely wouldn't share his toy .
A: | Adverb |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Example: The fact that you do not want to donate to these poor, needy people only shows me that you really do not care about the embryos
Example solution: Invalid
Example explanation: It is not an argument on the topic of death penalty.
Problem: Moreover, states without the death penalty have much lower murder rates.
| Solution: Valid |
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
One example: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Solution is here: Advertising
Explanation: The given policy text states that it uses user information for 'advertising' explicitly
Now, solve this: The site collects an information type outside of our label scheme for an unspecified purpose. Collection happens in an unspecified way.
Solution: | Unspecified |
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.
Input: Consider Input: [-2, 96, -55, -43, 43]
Output: 12
Input: Consider Input: [79, 31, 58, -76, 45, -32]
Output: 13
Input: Consider Input: [-4, -92, -84, 57, 81, -10, 74]
| Output: 6
|
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Q: Sentence: But she did a fabulous job letting me know what she {{ was }} doing at all times and styled my hair in a way i could do it at home .
Word: was
A: VBD
****
Q: Sentence: # 2 the decor is tasteful and artistic , from the comfortable chairs to the elegant light fixtures .... and ( most importantly ) # {{ 3 }} the food is FANTASTIC .
Word: 3
A: LS
****
Q: Sentence: Lopez 's 1561 book " Libro {{ de }} la invencion liberal y arte del Juego del Acedraz " became THE classic on Chess openings , including the one that bears his name .
Word: de
A: | FW
****
|
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [640, 819, 563, 34, 625]
A: | [563] |
Detailed Instructions: 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.
Q: Sentence: He ran all around the pond, barking at the ducks.
Question: How long was he barking at the ducks?
Category: Event Duration.
A: | Yes. |
In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Example input: Angola
Example output: Republic
Example explanation: Republic is the government type of the country called Angola.
Q: Taiwan
A: | Republic |
Detailed Instructions: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Q: x = 7, equation weights = [9, 1]
A: | 64 |
Detailed Instructions: In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Problem:[{'first': -71, 'second': -50}, {'first': 1, 'second': 48}, {'first': 45, 'second': 12}]
Solution: | [{'first': -71, 'second': -50}, {'first': 1, 'second': 48}, {'first': 45, 'second': 12}] |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [771, 57, 751, 827, 962]
A: | [751, 827] |
Definition: In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Input: Syria
Output: | Republic |
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: It was getting increasingly more difficult for Susie to see.
Initial Context: Her eyes were getting weaker.
Original Ending: She then decided to get her eyes checked. She learned she needed new glasses immediately. When Susie tried on the glasses they fit perfectly.
Counterfactual Context: The sky was getting darker as night started to fall.
A: | She then decided to make sure her eyes weren't also worsening and got them checked. She learned she needed new glasses immediately. When Susie tried on the glasses they fit perfectly. |
Q: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Verarsche . CD enthält kein einziges Lied aus dem Film!!! Große Enttäuschung unter dem Weihnachtsbaum! Nicht mal mehr zurückgeben kann man das schon geöffnete Ding.
A: | NEG |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
[EX Q]: What are the times used by climbers who climbed mountains in the country of Uganda?
[EX A]: SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda"
[EX Q]: What is all the information regarding employees with salaries above the minimum and under 2500?
[EX A]: SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
[EX Q]: What are the names, details and data types of the characteristics which are never used by any product?
[EX A]: | SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id
|
Detailed 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".
Problem:04/26/1748, input_format=mm/dd/yyyy
Solution: | 26/04/1748 |
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: What is the id and name of the enzyme that can interact with the most medicines as an activator?
Example Output: SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Example Input: Give the product id for the product that was ordered most frequently.
Example Output: SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1
Example Input: Find the employee id for all employees who earn more than the average salary.
Example Output: | SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees)
|
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: Jeff's friend Maude invited him to her art studio.
Initial Context: At the studio, Maude asked Jeff for some help.
Original Ending: Maude said that her dad's girlfriend was pretending to be kidnapped. Maude asked Jeff to help her uncover the truth. Jeff agreed to help Maude.
Counterfactual Context: Jeff was not very art educated.
A: | Maude said that her dad's girlfriend was pretending to be kidnapped. Maude asked Jeff to help her uncover the truth. Jeff agreed to help Maude. |
Given the task definition, example input & output, solve the new input case.
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
Example: Sentence: Jack played basketball after school, after which he was very tired.
Question: How long did Jack play basketball?
Category: Event Duration.
Output: Yes.
The question asks about the duration of playing basketball, therefore it's a "event duration" question.
New input case for you: Sentence: 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. |
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.
Q: [{'first': 41, 'second': -29}, {'first': 83, 'second': 97}, {'first': 90, 'second': -40}, {'first': 43, 'second': -78}, {'first': 26, 'second': -16}, {'first': 92, 'second': 25}, {'first': 68, 'second': 57}]
A: [{'first': 26, 'second': -16}, {'first': 41, 'second': -29}, {'first': 43, 'second': -78}, {'first': 68, 'second': 57}, {'first': 83, 'second': 97}, {'first': 90, 'second': -40}, {'first': 92, 'second': 25}]
****
Q: [{'first': 37, 'second': -24}, {'first': -22, 'second': 55}, {'first': -30, 'second': 2}, {'first': -22, 'second': -91}, {'first': 33, 'second': 99}, {'first': 53, 'second': 60}, {'first': 52, 'second': 14}, {'first': 70, 'second': -1}, {'first': -81, 'second': 19}]
A: [{'first': -81, 'second': 19}, {'first': -30, 'second': 2}, {'first': -22, 'second': -91}, {'first': -22, 'second': 55}, {'first': 33, 'second': 99}, {'first': 37, 'second': -24}, {'first': 52, 'second': 14}, {'first': 53, 'second': 60}, {'first': 70, 'second': -1}]
****
Q: [{'first': -57, 'second': -80}, {'first': 38, 'second': 72}, {'first': -46, 'second': 21}, {'first': -22, 'second': 84}, {'first': 30, 'second': -19}, {'first': -79, 'second': -85}, {'first': 79, 'second': -22}]
A: | [{'first': -79, 'second': -85}, {'first': -57, 'second': -80}, {'first': -46, 'second': 21}, {'first': -22, 'second': 84}, {'first': 30, 'second': -19}, {'first': 38, 'second': 72}, {'first': 79, 'second': -22}]
****
|
Detailed Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Problem:Sentence: 1 - Number of Bush administration public statements on National security issued between 20 January 2001 {{ and }} 10 September 2001 that mentioned al - Qa'ida .
Word: and
Solution: | CC |
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.
One example is below.
Q: gocogccocco
A: gocog
Rationale: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
Q: kssssstkkskktsk
A: | stkkskkts |
Q: Determine if the provided SQL statement properly addresses the given question. Output 1 if the SQL statement is correct and 0 otherwise. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Query: SELECT count(*) WHERE {
M0 a ns:film.actor .
M0 ns:film.actor.film/ns:film.performance.film M2 .
M0 ns:film.editor.film M2 .
M0 ns:film.producer.films_executive_produced M2
} Question: Was M1 M0 's prequel 's cinematographer , editor , art director , and executive producer
A: | 0 |
Answer the following question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
Answer: | It's So good but there a down loader you can download paid apps is Apptoid I get in the browser |
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
[EX Q]: Set1: '{16, 6}', Set2: '{1, 12, 15, 16, 18, 19}'. How many elements are there in the union of Set1 and Set2 ?
[EX A]: 7
[EX Q]: Set1: '{14, 15}', Set2: '{7, 9, 13, 14, 18, 19}'. How many elements are there in the union of Set1 and Set2 ?
[EX A]: 7
[EX Q]: Set1: '{2, 3, 7, 8, 12, 13, 19}', Set2: '{2, 3, 4, 7, 10, 17, 19, 20}'. How many elements are there in the union of Set1 and Set2 ?
[EX A]: | 11
|
Detailed Instructions: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Q: [85.529, 203.894, -43.436, 228.711, 1.764, -19.978, -5.241, 230.741]
A: | [ 0.125 0.299 -0.064 0.335 0.003 -0.029 -0.008 0.338] |
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
[Q]: uydddduuudyuddu
[A]: duuud
[Q]: kmmmmmkkmkm
[A]: kmmmmmk
[Q]: syyyvvvvsvysvs
[A]: | vvvv
|
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Solution: adverse drug event
Why? Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
New input: The occurrence of acute hepatitis is best known for ketoconazole.
Solution: | adverse drug event |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
Andorra
Solution: .ad
Why? .ad is the TLD of the country called Andorra.
New input: Sudan
Solution: | .sd |
Subsets and Splits