prompt
stringlengths
114
7.32k
response
stringlengths
1
523
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: [-99.952, -32.771] A:
[0.753 0.247]
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. Input: Consider Input: x = 0, equation weights = [5, 0, 6, 8] Output: 8 Input: Consider Input: x = 2, equation weights = [5, 6, 1] Output: 33 Input: Consider Input: x = 5, equation weights = [0, 8]
Output: 8
You will be given a definition of a task first, then some input of the task. A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. x = 7, equation weights = [2, 8, 5] Output:
159
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. Let me give you an example: bYubMFxyTqR, AcDbMFxSnI The answer to this example can be: bYubfmxyTqR, AcDbfmxSnI Here is why: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI' OK. solve this: ixbenQPFUb, KjbenQsJ Answer:
ixbenqPFUb, KjbenqsJ
Definition: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. Input: x = 6, equation weights = [8, 0] Output:
48
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" Let me give you an example: difficult The answer to this example can be: No Here is why: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions. OK. solve this: gentle Answer:
dental
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated. [Q]: Set1: '{1, 3, 7, 8, 9, 11, 12, 14, 15}', Set2: '{18, 4, 15}'. How many elements are there in the union of Set1 and Set2 ? [A]: 11 [Q]: Set1: '{1, 6, 13, 16, 19, 20}', Set2: '{4, 10, 12, 15, 16, 19, 20}'. How many elements are there in the union of Set1 and Set2 ? [A]: 10 [Q]: Set1: '{2}', Set2: '{20}'. How many elements are there in the union of Set1 and Set2 ? [A]:
2
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Q: [523, 680, 676, 573, 365, 367, 163, 935, 499, 992, 373, 220] A: [523, 367, 163, 499, 373] **** Q: [649, 953, 220] A: [953] **** Q: [897, 395, 402, 883, 431] A:
[883, 431] ****
Detailed Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" Problem:note Solution:
"quote
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. Let me give you an example: [47, 444, 859, 530, 197, 409] The answer to this example can be: [47, 859, 197, 409] Here is why: The integers '444' and '530' are not prime integers and they were removed from the list. OK. solve this: [968, 307, 321, 461, 619, 439, 29, 620, 358, 359, 638, 727, 431, 840] Answer:
[307, 461, 619, 439, 29, 359, 727, 431]
In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy". Example: 14/25/1405 Example solution: 0 Example explanation: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12. Problem: 09/14/1228
Solution: 1
Teacher: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. Teacher: Now, understand the problem? Solve this instance: Cholesterol crystal embolization-associated renal failure after therapy with recombinant tissue-type plasminogen activator. Student:
adverse drug event
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: [856, 108, 540, 52, 293, 345, 373, 901, 179, 541, 121, 571, 627, 709, 127, 438, 945] A:
[293, 373, 179, 541, 571, 709, 127]
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. Input: Consider Input: [{'first': -45, 'second': 51}, {'first': -72, 'second': -61}, {'first': 32, 'second': 37}, {'first': 39, 'second': 71}, {'first': -16, 'second': -1}, {'first': 9, 'second': 92}] Output: [{'first': -72, 'second': -61}, {'first': -45, 'second': 51}, {'first': -16, 'second': -1}, {'first': 9, 'second': 92}, {'first': 32, 'second': 37}, {'first': 39, 'second': 71}] Input: Consider Input: [{'first': -14, 'second': 51}, {'first': 30, 'second': 90}, {'first': -66, 'second': 39}, {'first': -38, 'second': 12}, {'first': 51, 'second': 59}] Output: [{'first': -66, 'second': 39}, {'first': -38, 'second': 12}, {'first': -14, 'second': 51}, {'first': 30, 'second': 90}, {'first': 51, 'second': 59}] Input: Consider Input: [{'first': -73, 'second': -45}, {'first': -36, 'second': -80}, {'first': -54, 'second': -76}, {'first': -47, 'second': 31}, {'first': -27, 'second': -1}]
Output: [{'first': -73, 'second': -45}, {'first': -54, 'second': -76}, {'first': -47, 'second': 31}, {'first': -36, 'second': -80}, {'first': -27, 'second': -1}]
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:
non-religious
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. Problem:[765, 293, 792, 986, 83, 65, 651, 563, 467, 19, 658] Solution:
[293, 83, 563, 467, 19]
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: But , we had a great laid back day last Saturday and I think {{ have }} hit that comfortable stage ... you know , not quite so formal about dates etc . Word: have Solution:
VBP
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': -42, 'second': -39}, {'first': 66, 'second': 87}, {'first': -76, 'second': 42}, {'first': -71, 'second': -62}, {'first': -27, 'second': 52}, {'first': 85, 'second': 7}, {'first': -73, 'second': 57}, {'first': 67, 'second': 61}] A:
[{'first': -76, 'second': 42}, {'first': -73, 'second': 57}, {'first': -71, 'second': -62}, {'first': -42, 'second': -39}, {'first': -27, 'second': 52}, {'first': 66, 'second': 87}, {'first': 67, 'second': 61}, {'first': 85, 'second': 7}]
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. One example is below. Q: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy. A: adverse drug event Rationale: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy. Q: CONCLUSION: We conclude that stanozolol is a safe and effective treatment of the cutaneous manifestations of cryofibrinogenemia. A:
non-adverse drug event
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Q: [-76.769 -12.914 3.362 -6.546] A:
-76.769
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. Input: [163.995, -85.124, 223.483, 241.12] Output:
[ 0.302 -0.157 0.411 0.444]
You will be given a definition of a task first, then some input of the task. 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 The site collects your demographic information for advertising. Collection happens when you implicitly provide information in an unspecified way. Output:
Advertising
Detailed Instructions: Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Q: I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK A:
turn opposite left thrice and look right twice
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: raoaaarrrrrr A:
rrrrrr
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Q: What is the party of the youngest people? A:
SELECT Party FROM people ORDER BY Age ASC LIMIT 1
Given the task definition and input, reply with output. 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. ffdffdddfdfd
ffdff
Instructions: The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages. Input: Context: 'well how about i get 2 water, 2 food and 1 firewood' 'Here is the offer. For you: 3 water 0 food 1 firewood' 'what about instead of firewood, I get 1 food, so it will be 3 water, 1 food and 0 firewood' Utterance: 'Ok so 3 water 0 firewood and 1 food, I can work with that' Output:
No
Detailed Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. Q: যখন কোন নিব্বা প্লে বয়কে বলে, দেহ পাবি মন পাবি না A:
non-religious
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: [311, 167, 729, 520, 409, 246, 373, 29, 380, 89, 725, 709, 919, 343] A:
[311, 167, 409, 373, 29, 89, 709, 919]
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 Input: Which cities' temperature in March is lower than that in July or higher than that in Oct? Ex Output: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct Ex Input: How many flights depart from City 'Aberdeen' and have destination City 'Ashley'? Ex Output: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = "Ashley" AND T3.City = "Aberdeen" Ex Input: What are the names of all of Bob's friends? Ex Output:
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
Detailed 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...'. Q: Joshua, you're still young. 90 is the new 70. A:
That's right. I'm just going to travel the world. It will be me and my old friend, the monkey paw that killed my wife.
You will be given a definition of a task first, then some input of the task. In this task you will be given a list of 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. [{'first': -5, 'second': -92}, {'first': -51, 'second': -91}, {'first': 7, 'second': 46}, {'first': -65, 'second': -57}, {'first': -11, 'second': 4}, {'first': 48, 'second': 41}, {'first': 87, 'second': -54}, {'first': -74, 'second': 79}] Output:
[{'first': -74, 'second': 79}, {'first': -65, 'second': -57}, {'first': -51, 'second': -91}, {'first': -11, 'second': 4}, {'first': -5, 'second': -92}, {'first': 7, 'second': 46}, {'first': 48, 'second': 41}, {'first': 87, 'second': -54}]
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. Example input: 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 ? Example output: 12 Example explanation: 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. Q: Set1: '{2, 5, 6, 7, 9, 11}', Set2: '{4, 5, 7, 9, 10, 11, 13, 15, 17}'. How many elements are there in the union of Set1 and Set2 ? A:
11
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. Let me give you an example: I_TURN_LEFT I_JUMP The answer to this example can be: jump left Here is why: If the agent turned to the left and jumped, then the agent jumped to the left. OK. solve this: I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_LEFT I_TURN_LEFT I_LOOK I_TURN_LEFT I_TURN_LEFT I_LOOK I_TURN_LEFT I_TURN_LEFT I_LOOK Answer:
look right twice and look opposite left thrice
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" Example Input: is Example Output: whiz Example Input: feed Example Output: need Example Input: not Example Output:
.dot
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 = 10, equation weights = [2, 7, 1, 4, 3] A: 27143 **** Q: x = 4, equation weights = [6, 8] A: 32 **** Q: x = 2, equation weights = [6, 0, 4, 2, 5] A:
121 ****
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: qnnqsnnssnsnqn A:
qnnq
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Problem:[-23.525 -29.667 98.533 50.921 -25.862 -1.133 53.067 -54.095 -67.539] Solution:
98.533
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. Input: Consider Input: I_TURN_LEFT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT Output: turn left and turn around right twice Input: Consider Input: I_TURN_LEFT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_WALK Output: walk opposite right thrice after run left Input: Consider Input: I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK
Output: look opposite right thrice after run opposite right
Detailed Instructions: In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated. Problem:Set1: '{17, 2, 5}', Set2: '{2, 3, 6, 9, 11, 16}'. How many elements are there in the union of Set1 and Set2 ? Solution:
8
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. Input: [107.432, 53.513, 147.848, -48.165, 103.219, 154.297, 104.372, -40.609] Output:
[ 0.185 0.092 0.254 -0.083 0.177 0.265 0.179 -0.07 ]
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. Let me give you an example: [-11, 2, 3] The answer to this example can be: -11 Here is why: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example. OK. solve this: [-63.837 0.528 41.66 -16.7 53.198 -25.733 10.603 80.431 35.857] Answer:
80.431
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. Input: Consider Input: Sentence: {{ When }} I first get on I take 1 leg and pull it back up to touch my butt with my heel and hold it there for 1 lap at a walk around a large dressage arena . Word: When Output: WRB Input: Consider Input: Sentence: I decided that Nicki would just have to {{ wait }} on her own . Word: wait Output: VB Input: Consider Input: Sentence: {{ Please }} let me know . Word: Please
Output: UH
Given the task definition and input, reply with output. 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. [107.936, 160.165, 110.913, 13.505, -26.788]
[ 0.295 0.438 0.303 0.037 -0.073]
You will be given a definition of a task first, then some input of the task. In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. What are the names of products produced by both Creative Labs and Sony? Output:
SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'
Given the task definition and input, reply with output. 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 The site collects your generic personal information for personalization or customization. Collection happens in an unspecified way. You can make a choice about the use of your information.
Personalization/Customization
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_JUMP I_JUMP I_JUMP
jump thrice after look around left twice
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...'. Let me give you an example: I just want to say if this does not work out I promise to to personally show up to each of your homes and apologize for my life not working out the way that it should. The answer to this example can be: You know what, come tell us at the community pool. Here is why: This is a good response. Because it accepts in indirect way the input sentence and supports it. OK. solve this: Sir, if you could just let our family pass, we just want to go through the scary maze, slide down the Hill of Wonder and then go through the Marsh of Destruction. Answer:
At the Marsh of Destruction, we have to tell my daughter who fathered her.
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. Example input: Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) . Word: ( Example output: -LRB- Example explanation: "(" is the symbol for Left Parantheses (-LRB-). Q: Sentence: Anna Marie and Govind are very sweet people , and the minute you steep into their school , the calm loving atmosphere takes over , {{ and }} tension and worries stay outside in the street , whether or not you pick them up again after class is probably a question of practice . Word: and A:
CC
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_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT [A]: turn opposite right thrice and turn around left twice [Q]: I_TURN_RIGHT I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP [A]: turn right and jump around left twice [Q]: I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK [A]:
jump opposite right twice and look right thrice
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: [322, 149, 401, 314, 827, 919, 493, 976, 108, 962, 439, 351, 499, 151, 297] A: [149, 401, 827, 919, 439, 499, 151] **** Q: [73, 692, 149, 557, 400, 358, 11, 790, 577, 288, 89, 911, 244, 128, 706, 401, 886, 947] A: [73, 149, 557, 11, 577, 89, 911, 401, 947] **** Q: [359, 737, 593, 772, 401] A:
[359, 593, 401] ****
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. Let me give you an example: I_TURN_LEFT I_JUMP The answer to this example can be: jump left Here is why: If the agent turned to the left and jumped, then the agent jumped to the left. OK. solve this: I_WALK I_WALK I_TURN_LEFT I_TURN_LEFT I_WALK I_TURN_LEFT I_TURN_LEFT I_WALK Answer:
walk opposite left twice after walk twice
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. [Q]: What are the ages of all music artists? [A]: SELECT Age FROM artist [Q]: Return the number of United Airlines flights leaving from AHD Airport. [A]: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.SourceAirport = "AHD" [Q]: Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross. [A]:
SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1
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 One example: [1,2,2,3] Solution is here: 1 Explanation: The array is monotonic as 1 < 2 <= 2 < 3 Now, solve this: [49, 57, 65, 73, 81, 89, 97] Solution:
1
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Example Input: I_WALK I_WALK I_TURN_RIGHT I_LOOK Example Output: walk twice and look right Example Input: I_WALK I_WALK I_WALK I_TURN_RIGHT Example Output: turn right after walk thrice Example Input: I_TURN_LEFT I_JUMP I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK Example Output:
walk around left twice after jump left
Definition: The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages. Input: Context: Utterance: 'I would really like some extra firewood to keep the chill off on those cold nights.🙂' Output:
Yes
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: Some mollusks are nearly too small to see. A:
Some mollusks are nearly what?
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. See one example below: Problem: [-11, 2, 3] Solution: -11 Explanation: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example. Problem: [-55.658 29.338] Solution:
-55.658
Detailed Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty. Q: These are people who enjoy murdering people because it feels good to them, yet you feel they deserve defending, while totally innocent unborn babies who have wronged no one at all are worthy of being victims of infanticide to you. A:
Invalid
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. Problem:[232.282, 24.918, 116.876, -3.393, -79.617, 5.368, 164.212, 90.44, -36.433] Solution:
[ 0.451 0.048 0.227 -0.007 -0.155 0.01 0.319 0.176 -0.071]
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. Example: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)। Example solution: religious Example explanation: Here it expresses hate against the religion, hence tagged as religious. Problem: স্বরাষ্ট্রমন্ত্রী একজন বড় রাজাকার, তাকে ধরে ফাঁসি দিন তাহলে বুঝতে পারবো আপনারা সত্যিকারে রাজাকারের বিচার করছেন
Solution: non-religious
Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty. Input: But on another note, I wonder whether he wouldn't rather be sentenced to death than put with the general prison population. Output:
Valid
Q: 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. [89, 877, 331, 995, 550, 59, 30, 127] A:
[89, 877, 331, 59, 127]
Given the task definition and input, reply with output. The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages. Context: 'That sounds good to me. It looks like it will be a good weekend for both of us.' 'I think so too! I hope that hurricane doesn't cause any issues to our plans!' 'I think we will be ok. I'm more worried about the heat. You can submit the deal if you want.' Utterance: 'Have a great camping trip! Nice meeting you!'
No
Detailed Instructions: Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise See one example below: Problem: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website. Solution: Advertising Explanation: The given policy text states that it uses user information for 'advertising' explicitly Problem: An unnamed third party does receive your location information for targeted advertising. The data is personally identifiable. You can opt out by contacting the company for the use of your information. Solution:
Advertising
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. Ex Input: x = 1, equation weights = [7, 6, 4, 5, 1] Ex Output: 23 Ex Input: x = 0, equation weights = [6, 4, 9] Ex Output: 9 Ex Input: x = 3, equation weights = [0, 1] Ex Output:
1
Detailed Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. Problem: আসলো একটা খানকি মুসলমান মারো বাম্ সেখাবো কোন দূঃখ নাই ওর দুঃখো ভারতো মালাউন মরলো। Solution:
religious
Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" Input: row Output:
show
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty. Q: If we kill a few innocent lifes in the process, thats fine by me as long as the rightfuly convicted felons are killed VIA leathal injection and/or electric chair. A:
Valid
Given the task definition and input, reply with output. 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. qqqqqqgqggqqqgg
ggqqqgg
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': 30, 'second': 94}, {'first': -35, 'second': -68}, {'first': -3, 'second': -14}, {'first': 36, 'second': -16}, {'first': 69, 'second': 96}, {'first': -53, 'second': -24}, {'first': -71, 'second': -94}, {'first': -57, 'second': 89}, {'first': -65, 'second': -79}] Solution:
[{'first': -71, 'second': -94}, {'first': -65, 'second': -79}, {'first': -57, 'second': 89}, {'first': -53, 'second': -24}, {'first': -35, 'second': -68}, {'first': -3, 'second': -14}, {'first': 30, 'second': 94}, {'first': 36, 'second': -16}, {'first': 69, 'second': 96}]
Q: In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated. Set1: '{1, 3, 5, 8, 10, 11, 14, 20}', Set2: '{4, 5, 6, 12, 13, 16, 17, 18}'. How many elements are there in the union of Set1 and Set2 ? A:
15
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task. The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages. Context: 'That sounds pretty reasonable as I am in need of firewood the most. Would it be most reasonable to each take what we need most and split the water down the middle?' 'Yes, it would.' 'I think that sounds fair. The problem is that there are 3 waters and one of us would get two and the other one. How should we sort that?' Utterance: 'You can take the two water. I am not that thirsty most days.' Solution: No Why? In this utterance, the participant does not use self-need since they do not talk about any need for themselves. New input: Context: 'I got some spare wood. I’m a little short on food though. I didn’t pack enough. ' 'Great, we can split the food, how are you on water?' 'That would be great. I need to have frequent small meals throughout the day so the extra food would help. I have plenty of water. ' Utterance: 'alright, so I'll keep the water, and firewood, and give you 2 extra food. Does that sound like a good deal?' Solution:
No
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Problem:[ 63.427 56.169 14.311 8.875 -41.623] Solution:
63.427
You will be given a definition of a task first, then some input of the task. 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. [ 84.145 17.253 97.407 65.828 -85.48 ] Output:
97.407
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. [EX Q]: trout [EX A]: vertebrate [EX Q]: football [EX A]: sport [EX Q]: rifle [EX A]:
firearm
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. Ex Input: [{'first': 61, 'second': -89}, {'first': 49, 'second': 11}, {'first': -76, 'second': -62}] Ex Output: [{'first': -76, 'second': -62}, {'first': 49, 'second': 11}, {'first': 61, 'second': -89}] Ex Input: [{'first': -39, 'second': -11}, {'first': 35, 'second': 51}, {'first': 95, 'second': -100}, {'first': -15, 'second': 4}, {'first': -45, 'second': 100}] Ex Output: [{'first': -45, 'second': 100}, {'first': -39, 'second': -11}, {'first': -15, 'second': 4}, {'first': 35, 'second': 51}, {'first': 95, 'second': -100}] Ex Input: [{'first': -79, 'second': 2}, {'first': 65, 'second': -94}] Ex Output:
[{'first': -79, 'second': 2}, {'first': 65, 'second': -94}]
Detailed 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...'. Q: If you leave with this man, you'll ruin your life. Mark my words. A:
Oh my gosh, I'll take it. This life is so boring anyway.
You will be given a definition of a task first, then some input of the task. 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. IlqMZcrVjxsddxuqr, gAmJrVjxsdLVyp Output:
IlqMZcdjrsvxdxuqr, gAmJdjrsvxLVyp
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. Ex Input: [718, 882, 311, 97, 31, 646, 146, 971] Ex Output: [311, 97, 31, 971] Ex Input: [828, 983, 733, 733, 281, 675, 20, 724, 237, 527, 661, 228, 601, 656, 829, 173, 443, 992] Ex Output: [983, 733, 733, 281, 661, 601, 829, 173, 443] Ex Input: [271, 744, 60, 757, 478, 206, 577, 479, 619, 941, 399, 223, 266, 47] Ex Output:
[271, 757, 577, 479, 619, 941, 223, 47]
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: Bacteria lack ribosomes. Output:
Which organism lacks ribosomes?
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 = 5, equation weights = [6, 9] A:
39
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. One example is below. Q: x = 3, equation weights = [4, 2] A: 14 Rationale: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14. Q: x = 7, equation weights = [7, 5, 4, 6, 0] A:
18760
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: 34 - Percentage of Americans who believed in June 2003 that Saddam 's {{ " }} weapons of mass destruction " had been found . Word: " A: `` **** Q: Sentence: Your love life will thrive for {{ most }} of the year , and any relationship begun or reaffirmed in 2005 is very likely to be a lasting one . Word: most A: JJS **** Q: Sentence: The cost {{ is }} $ 567.77 per chair plus tax . Word: is A:
VBZ ****
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. -------- Question: ছাত্রলীগ এত সুন্দর মিথ্যা বলে। সত্য কথা বললে যেমন সত্যই শোনায় তমনি মিথ্যা বললেও বোঝা যায়। Answer: non-religious Question: দাদাববুর দেশের পানিতে মানুষ ডুবে মরে মরুক দাদার কোল আলোকিত করে বেঁচে থাকুক হাতিটি Answer: non-religious Question: আমার আরো ১০ টা বিয়ে করার ইচ্ছে মাগীর এত চুলকানি আসে কোথা থেকে Answer:
non-religious
Teacher: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 Teacher: Now, understand the problem? Solve this instance: The site collects your user profile for an additional (non-basic) service or feature. Collection happens in an unspecified way. Student:
Additional service/feature
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated. -------- Question: Set1: '{1, 19, 12}', Set2: '{1, 3, 4, 6, 7, 11, 14, 15, 16, 18}'. How many elements are there in the union of Set1 and Set2 ? Answer: 12 Question: Set1: '{2, 3, 5, 7, 8, 11, 12, 13, 17, 18}', Set2: '{16, 2, 13, 14}'. How many elements are there in the union of Set1 and Set2 ? Answer: 12 Question: Set1: '{3, 8, 10, 13, 14, 18}', Set2: '{1, 2, 8, 13, 14, 17, 18}'. How many elements are there in the union of Set1 and Set2 ? Answer:
9
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. Problem:[773, 61, 659, 43, 743, 744, 168, 383, 523, 101, 433, 850, 226, 881] Solution:
[773, 61, 659, 43, 743, 383, 523, 101, 433, 881]
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. Example input: gocogccocco Example output: gocog Example explanation: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example. Q: oomooooogm A:
oomoo
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Input: Consider Input: This case and a review of the literature show the severe and unpredictable nature of ethambutol toxicity and its potential for irreversible vision loss despite careful ophthalmologic monitoring. Output: adverse drug event Input: Consider Input: Trichosporonosis appears to be an emerging fungal infection among immunocompromised individuals (including both hematological and solid organ transplant recipients). Output: non-adverse drug event Input: Consider Input: CLINICAL FEATURES: A 74-yr-old, 51-kg woman with a history of hypertension controlled with 5 mg.day-1 enalapril and 50 mg.day-1 atenolol was admitted for evaluation of low back pain, loss of appetite, and weight loss.
Output: non-adverse drug event
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Problem:[-89.214 59.417 28.717] Solution:
-89.214
Q: Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'. That place, there's something about that place. A:
I think it's unseemly that there's dead bodies that are part of the miniature golf layout.
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. One example: x = 3, equation weights = [4, 2] Solution is here: 14 Explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14. Now, solve this: x = 8, equation weights = [9, 8, 4] Solution:
644
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': 30, 'second': 64}, {'first': 68, 'second': 0}, {'first': 89, 'second': 76}, {'first': -83, 'second': 44}, {'first': 79, 'second': -87}, {'first': -55, 'second': -48}, {'first': 25, 'second': 99}, {'first': -36, 'second': -40}] A:
[{'first': -83, 'second': 44}, {'first': -55, 'second': -48}, {'first': -36, 'second': -40}, {'first': 25, 'second': 99}, {'first': 30, 'second': 64}, {'first': 68, 'second': 0}, {'first': 79, 'second': -87}, {'first': 89, 'second': 76}]
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Example input: [47, 444, 859, 530, 197, 409] Example output: [47, 859, 197, 409] Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Q: [419, 42, 509, 887, 903, 313, 744, 317, 23, 331, 163, 643, 557, 906, 848, 867, 399, 937] A:
[419, 509, 887, 313, 317, 23, 331, 163, 643, 557, 937]
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 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. [-11, 2, 3] Solution: -11 Why? The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example. New input: [-66.299 20.21 -49.224 -89.975 10.812 -54.236 43.271 62.818 39.145] Solution:
-89.975
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: gocogccocco Solution is here: gocog Explanation: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example. Now, solve this: aamaaahaham Solution:
aamaa
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. See one example below: Problem: [47, 444, 859, 530, 197, 409] Solution: [47, 859, 197, 409] Explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Problem: [797, 401, 325, 264, 591] Solution:
[797, 401]
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. [EX Q]: [146.907, 9.655] [EX A]: [0.938 0.062] [EX Q]: [141.801, -34.863, 156.984, 129.543, 63.836, 126.413, 105.502] [EX A]: [ 0.206 -0.051 0.228 0.188 0.093 0.183 0.153] [EX Q]: [39.875, -68.311, 117.885, 177.728, 241.736, 2.706, -6.729, 237.648, -28.468] [EX A]:
[ 0.056 -0.096 0.165 0.249 0.339 0.004 -0.009 0.333 -0.04 ]
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. Example: [-11, 2, 3] Example solution: -11 Example explanation: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example. Problem: [-75.266 4.558 82.725 82.421 5.616 -87.986 19.367 95.507]
Solution: 95.507