prompt
stringlengths 114
7.32k
| response
stringlengths 1
523
|
---|---|
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: Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Example solution: -LRB-
Example explanation: "(" is the symbol for Left Parantheses (-LRB-).
Problem: Sentence: Is {{ there }} supposed to be a cashout booked in Sitara for these months ?
Word: there
| Solution: EX |
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.
Problem:I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_LEFT I_TURN_LEFT I_RUN
Solution: | run opposite right thrice and run opposite left |
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: bfzfzzbzbffbbb
A: | bffb |
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]: [-17.34 32.916]
[A]: 32.916
[Q]: [-69.222 62.35 -40.831 -25.274 -95.552 -98.645]
[A]: -98.645
[Q]: [ 81.147 2.313 49.47 -30.691 69.827 -14.829 -94.532 -42.7 ]
[A]: | -94.532
|
Given the task definition and input, reply with output. In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Sentence: I called reception to ask if they knew the state the room was in and was told " This is a {{ Days }} Inn , not the Hilton " and the receptionist then hung up on me .
Word: Days
| NNPS |
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.
Example Input: The aim of this paper is to report the case of rosaceiform eruption induced by erlotinib in an 81-year-old-man and to discuss the pathogenetic role of Demodex folliculorum mites, found in the present patient, using skin scraping.
Example Output: adverse drug event
Example Input: A fatal massive pulmonary embolus developed in a patient treated with streptokinase for acute deep vein thrombosis.
Example Output: adverse drug event
Example Input: RESULTS: Three patients who developed symptoms of inflammatory bowel disease (IBD) during rofecoxib exposure are described along with pathology findings.
Example Output: | adverse drug event
|
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.
Q: uAhloFosuLkrwd, REtoFosudM
A: | uAhlfoosuLkrwd, REtfoosudM |
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 Input:
রানুদি হাই কোটে গিয়ে ভিক্ষা করতো
Ex Output:
non-religious
Ex Input:
এইসসব পতিতা। তোদের মাগী বলবেনা। চুদতে দিছ সবাই রে তো মাগী বলবে না তো কি?
Ex Output:
non-religious
Ex Input:
সব বেজন্মা খানকিরপোলা ফেক নিউজ ছরাইতাছে। তোদের জন্মের ঠিক নাই
Ex Output:
| non-religious
|
Given the task definition and input, reply with output. 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': 16, 'second': -46}, {'first': -79, 'second': -95}]
| [{'first': -79, 'second': -95}, {'first': 16, 'second': -46}] |
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.
--------
Question: There are also people who will tell you that the death penalty actually kills innocent people.
Answer: Valid
Question: The chance of being killed in prison sounds to me like a better deterrent than capital punishment.
Answer: Valid
Question: The death penalty was established so families would not fued for generations.
Answer: | Valid
|
Detailed Instructions: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right
Q: [169, 162, 155, 148, 141, 134, 127, 120, 113, 106, 99, 92, 85, 78, 71, 64, 57, 50, 43, 36, 29, 22, 15]
A: | 1 |
Detailed Instructions: In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
See one example below:
Problem: gocogccocco
Solution: gocog
Explanation: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
Problem: rrrerpeeeep
Solution: | peeeep |
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.
Ex Input:
¿buscar " outback steakhouse " ?
Ex Output:
search for " outback steakhouse " ?
Ex Input:
¿cuáles son las últimas opiniones y la puntuación de este restaurante?
Ex Output:
what are the latest reviews and review scores for this restaurant ?
Ex Input:
¿dónde está " los compadres "?
Ex Output:
| where is " los compadres " ?
|
You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
Q: 12:39 Hrs
A: | 12:39 PM |
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
[11, 22, 91, 7, 82, 0, 89, 19, 13, 17]
2
[23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187]
1
[80, 4, 43, 3, 2, 11, 83, 93, 38, 59]
| 2
|
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 = 2, equation weights = [7, 8, 3]
A: 47
****
Q: x = 0, equation weights = [3, 7, 2, 0, 4]
A: 4
****
Q: x = 8, equation weights = [0, 7, 9]
A: | 65
****
|
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: [491, 112, 829, 699, 786, 996, 753, 7, 350, 394, 155, 277]
Solution: | [491, 829, 7, 277] |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a list of 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.
[47, 444, 859, 530, 197, 409]
Solution: [47, 859, 197, 409]
Why? The integers '444' and '530' are not prime integers and they were removed from the list.
New input: [385, 374, 673, 263, 569, 701]
Solution: | [673, 263, 569, 701] |
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
--------
Question: [32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168]
Answer: 1
Question: [96, 85, 77, 11, 60, 55, 34, 37, 46, 10]
Answer: 2
Question: [70, 74, 90, 85, 92, 3, 63, 57, 53, 91]
Answer: | 2
|
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Input: Consider Input: against
Output: fenced
Input: Consider Input: pull
Output: bull
Input: Consider Input: slave
| Output: wave
|
Definition: 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: I'm sorry, Mr. Gumbers, I've had some problems at home.
Output: | Don't give me those crocodile tears. Did your mom die a third time? |
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:[173.272, -46.002, 131.505, -33.525, -55.169, -53.98, 212.131, 51.829, 242.31]
Solution: | [ 0.278 -0.074 0.211 -0.054 -0.089 -0.087 0.341 0.083 0.389] |
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: 'I would be willing to take 2 firewood, 3 food, and 1 water if that would work for you. ' 'Hmm I think I should take 2 food, 1 firewood, and 3 water. What do you think?' 'Is your first priority the water? I'm definitely willing to split up by what is most important to us both.'
Utterance: 'Food is actually my first priority but since it seems to be first priority for us both I thought we could split that. Water doesn't seem to be a priority for you so thought I could take that'
Output: | Yes |
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.
--------
Question: [128.101, 16.516, 246.993, 104.335, -69.747, 238.429, -26.383]
Answer: [ 0.201 0.026 0.387 0.163 -0.109 0.374 -0.041]
Question: [241.151, -67.168, 161.913, 68.409, -5.213, 66.258, 70.05, 38.39, 30.598]
Answer: [ 0.399 -0.111 0.268 0.113 -0.009 0.11 0.116 0.064 0.051]
Question: [-67.862, 109.349, 9.368, 105.665, 239.838, 160.594, 185.04]
Answer: | [-0.091 0.147 0.013 0.142 0.323 0.216 0.249]
|
Q: 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.
owMUKUM, EgMUKKI
A: | owkmuUM, EgkmuKI |
Part 1. Definition
You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
Part 2. Example
19:00 Hrs
Answer: 07:00 PM
Explanation: For a 24-Hours format time larger than 12:00, we should subtract 12 hours from the given time, then add 'PM'. So, the output is correct.
Part 3. Exercise
04:11 Hrs
Answer: | 04:11 AM |
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: Angola
Example solution: Republic
Example explanation: Republic is the government type of the country called Angola.
Problem: Portugal
| Solution: Republic |
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: [ 74.36 -40.341 62.409 -4.246 14.067 9.463 -2.399 -86.371]
A: | -86.371 |
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: If they ask how much I 'm willing to pay , {{ what }} is a good price range ?
Word: what
A: | WP |
Teacher: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?"
Teacher: Now, understand the problem? Solve this instance: Fact: Measuring hardness of minerals requires a harder mineral.
Student: | Measuring hardness of minerals requires a harder what? |
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 is below.
Q: [1,2,2,3]
A: 1
Rationale: The array is monotonic as 1 < 2 <= 2 < 3
Q: [169, 162, 155, 148, 141, 134, 127, 120, 113, 106, 99, 92, 85, 78, 71, 64, 57, 50, 43, 36, 29, 22, 15]
A: | 1 |
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]: [104, 191, 709, 245, 433, 937, 324, 619, 62, 25, 719, 404, 867, 146, 709, 431, 481]
[A]: [191, 709, 433, 937, 619, 719, 709, 431]
[Q]: [31, 537, 357, 400, 919]
[A]: [31, 919]
[Q]: [987, 163, 452, 769, 459, 716, 311, 443, 645, 7, 214, 577, 245]
[A]: | [163, 769, 311, 443, 7, 577]
|
Definition: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Input: [141.654, 208.505, 44.896, 59.537]
Output: | [0.312 0.459 0.099 0.131] |
Q: 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': -82, 'second': -64}, {'first': -12, 'second': 73}, {'first': -4, 'second': -17}, {'first': -92, 'second': 60}, {'first': 69, 'second': -13}, {'first': 69, 'second': 95}, {'first': 58, 'second': 29}, {'first': 100, 'second': -67}]
A: | [{'first': -92, 'second': 60}, {'first': -82, 'second': -64}, {'first': -12, 'second': 73}, {'first': -4, 'second': -17}, {'first': 58, 'second': 29}, {'first': 69, 'second': -13}, {'first': 69, 'second': 95}, {'first': 100, 'second': -67}] |
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.
Q: etBNqdCdccefgkJrysaCPxyquwkvTYeumAgjVSrn, VTrHKpigkJrysaCPxyquwPoyEhxbT
A: | etBNqdCdccefacgjkpqrsuwxyykvTYeumAgjVSrn, VTrHKpiacgjkpqrsuwxyyPoyEhxbT |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Input: Consider Input: possible
Output: horrible
Input: Consider Input: him
Output: mim
Input: Consider Input: fight
| Output: right
|
Part 1. Definition
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Part 2. Example
[47, 444, 859, 530, 197, 409]
Answer: [47, 859, 197, 409]
Explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Part 3. Exercise
[922, 956, 103, 677, 883, 886, 817, 508, 402, 51, 155, 673, 236, 967, 734, 921]
Answer: | [103, 677, 883, 673, 967] |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
[Q]: To our knowledge, no prior cases of penicillamine-induced TTP in RA have been reported.
[A]: adverse drug event
[Q]: A woman developed delusional parasitosis when taking phenelzine.
[A]: adverse drug event
[Q]: Development of an extensive skin rash following a single dose of MTX may be an early warning sign for life-threatening bone marrow aplasia.
[A]: | adverse drug event
|
Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'.
--------
Question: Hey, I made you something. It was just pocket lint. I had to work quickly while you was looking through the record albums.
Answer: It looks like a rabbit.
Question: We want to trick them into it. Say because the Oscars are so Asian, let's go ahead and honor them by taking your shoes off.
Answer: We'll have sushi there for them to eat.
Question: They don't deserve to walk on dirt.
Answer: | The carpet is red because it's the blood of the masses that they're walking on.
|
Teacher:This task is to find the number of 'For' loops present in the given cpp program.
Teacher: Now, understand the problem? Solve this instance: int x[1000]={0};
void f(int m,int n,int l)
{
int i;
for(i=m;i<=n;i++)
{
if(n%i!=0) continue;
else
{
if(n/i==1)
{
x[l]++;
return;
}
else f(i,n/i,l);
}
}
}
int main()
{
int a[1000],s,j,sum;
cin>>sum;
for(j=1;j<=sum;j++)
{
cin>>a[j];
s=2;
f(s,a[j],j);
}
for(j=1;j<=sum;j++)
{
cout<<x[j]<<endl;
}
return 0;
}
Student: | 3 |
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Example: crystal
Example solution: rock
Example explanation: A crystal is a type of rock, so rock is a valid hypernym output.
Problem: spend
| Solution: pay |
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: [387, 157, 731, 857, 666, 970, 751, 410, 118, 988, 647, 856, 89, 131, 941, 873, 921, 602, 37]
Example Output: [157, 857, 751, 647, 89, 131, 941, 37]
Example Input: [263, 194, 230, 563, 887, 651]
Example Output: [263, 563, 887]
Example Input: [651, 619, 273, 571, 29, 378, 886, 466]
Example Output: | [619, 571, 29]
|
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 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.
কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
Solution: religious
Why? Here it expresses hate against the religion, hence tagged as religious.
New input: মুতি খাওয়ার গোষ্ঠী মালাউনের বাচ্চা গুলি কে জিনদা পড়া দে
Solution: | religious |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
[EX Q]: Wiig was born on August 22, 1973, in Canandaigua, New York, the daughter of Jon Wiig, who ran a lake marina in Western New York, and Laurie (née Johnston), an artist
[EX A]: August 22, 1973
[EX Q]: Lloyd was born on October 22, 1938, in Stamford, Connecticut, the son of Ruth Lloyd (née Lapham; 1896–1984), a singer and sister of San Francisco mayor Roger Lapham, and her lawyer husband Samuel R
[EX A]: October 22, 1938
[EX Q]: Amy Lou Adams was born on August 20, 1974, to American parents Richard and Kathryn Adams, when her father was stationed with the United States Army at the Caserma Ederle military complex in Vicenza, Italy
[EX A]: | August 20, 1974
|
Given the task definition, example input & output, solve the new input case.
This task is to find the number of 'For' loops present in the given cpp program.
Example: main()
{
float a[4];
float k;
float c;
int i;
for(i=0;i<4;i++)
{
scanf("%f",&a[i]);
}
scanf("%f",&c);
c=2*3.1415926*c/360;
k=(a[0]+a[1]+a[2]+a[3])/2;
double s,sq;
sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2);
if(sq<0)
printf("Invalid input");
else
{
s=sqrt(sq);
printf("%.4f",s);
}
}
Output: 1
The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example.
New input case for you: /*
* ????1118-4.cpp
* ?????
* ????: 2011-11-29
* ??????????a?????????????????a = a1 * a2 * a3 * ... * an???1 < a1 <= a2 <= a3 <= ... <= an?????????????
*/
int divide(int n,int a)//n?????????a????????????????????
{
int s=0,i;
if(n==1) return 1;//n?1???
for(i=a;i>1;i--)
if(n%i==0)
s+=divide(n/i,i);//???????
return s;//??0??????????0??????????
}
int main()
{
int n,k;
cin>>k;//??????
while(k>0)//???????
{
cin>>n;//????????
cout<<divide(n,n)<<endl;//??????
k--;//?????????
}
return 0;//????
}
Output: | 1 |
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.
--------
Question: The statistics about the effectiveness of the death penalty in deterring crimes are very mixed and seem inconclusive.
Answer: Valid
Question: If JC were here today, he would be branded a flaming liberal.
Answer: Invalid
Question: Comming from the person who has praised and called for the Saudi version of the death penalty.
Answer: | Valid
|
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.
[769, 587, 586, 271, 533, 79, 211, 858, 162, 379, 404, 343, 825, 772] | [769, 587, 271, 79, 211, 379] |
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 track on the first party website or app your cookies or tracking elements for targeted advertising. The data is aggregated or anonymized. You can opt out using the provided link.
A: | Advertising |
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: Philippines
Output: | Republic |
TASK DEFINITION: You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
PROBLEM: 23:10 Hrs
SOLUTION: 11:10 PM
PROBLEM: 12:35 Hrs
SOLUTION: 12:35 PM
PROBLEM: 10:43 Hrs
SOLUTION: | 10:43 AM
|
Teacher: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Solution: -LRB-
Reason: "(" is the symbol for Left Parantheses (-LRB-).
Now, solve this instance: Sentence: Then , the next morning , when {{ we }} , among many other irate guests , asked to speak to the owner , he refused to do so .
Word: we
Student: | PRP |
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.
[96.845, 81.775, 64.857, 249.234, 48.59, 16.367, 13.091]
| [0.17 0.143 0.114 0.437 0.085 0.029 0.023] |
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.
One example is below.
Q: crystal
A: rock
Rationale: A crystal is a type of rock, so rock is a valid hypernym output.
Q: bulge
A: | bend |
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.
Example: [1, 2, 3]
Example solution: [0.167, 0.333, 0.500]
Example 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.
Problem: [94.691, 198.792, 106.095, 64.334]
| Solution: [0.204 0.429 0.229 0.139] |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Example Input: Lange was born in Cloquet, Minnesota, on April 20, 1949
Example Output: April 20, 1949
Example Input: Toni Collett was born on 1 November 1972, the eldest of three children; she has two younger brothers
Example Output: 1 November 1972
Example Input: Uma Karuna Thurman was born on April 29, 1970, in Boston, Massachusetts
Example Output: | April 29, 1970
|
You will be given a definition of a task first, then some input of the task.
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 {
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M0 .
FILTER ( ?x0 != M0 ) .
FILTER ( M1 != ?x0 ) .
M1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x0 .
M1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0
} Question: Was M1 M0 's spouse 's child and spouse
Output: | 1 |
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: ererreeorr
Solution: | erre |
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 = 1, equation weights = [1, 2, 7]
Output: | 10 |
Detailed Instructions: You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
Problem:04:59 Hrs
Solution: | 04:59 AM |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Q: Recently there have been concerns relating to liver and now kidney toxicity.
A: non-adverse drug event
****
Q: Here, we describe a case of Vogt-Koyanagi-Harada disease occurring 4 months after the start of interferon alpha treatment, probably induced by the immunomodulatory effects of interferon.
A: adverse drug event
****
Q: Common adverse events (frequency 10%) of lacosamide doses up to 600 mg/day include nonspecific central nervous system effects (e.g., dizziness, ataxia, diplopia, and somnolence).
A: | adverse drug event
****
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Greenland
Student: | .gl |
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.
[118.086, 95.466, 11.225, 129.378] | [0.333 0.27 0.032 0.365] |
You will be given a definition of a task first, then some input of the task.
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?"
Fact: humans require energy for growth.
Output: | what requires energy for growth? |
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_TURN_LEFT I_RUN I_TURN_LEFT I_TURN_LEFT I_RUN I_TURN_LEFT I_TURN_LEFT 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
Solution: | look opposite right thrice after run opposite left thrice |
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.
[121.692, 197.469, -49.867, 136.226]
| [ 0.3 0.487 -0.123 0.336] |
Given the task definition and input, reply with output. In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Find the number of routes whose destination airports are in Canada.
| SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' |
Detailed Instructions: Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
See one example below:
Problem: Basinger was born in Athens, Georgia, on December 8, 1953
Solution: December 8, 1953
Explanation: The output is correct as it is a valid text span, is of minimal length and is the correct date of birth.
Problem: Garrett John Hedlund was born on September 3, 1984, in Roseau, Minnesota, to Kristine Anne (née Yanish) and Robert Martin Hedlund
Solution: | September 3, 1984 |
Detailed Instructions: Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Problem:A user's generic personal information is retained for a limited (but unspecified) period of time to perform a requested service, and then it is deleted..
Solution: | Not Specified |
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]: [-77.517 -76.468 -70.158 9.169 85.716 -54.499 -68.214 32.202]
[A]: 85.716
[Q]: [ 72.426 -71.421 60.207]
[A]: 72.426
[Q]: [-76.798 -95.726]
[A]: | -95.726
|
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': 38, 'second': 7}, {'first': -50, 'second': -90}, {'first': -88, 'second': 69}, {'first': 25, 'second': 77}, {'first': -58, 'second': -89}, {'first': 0, 'second': 23}, {'first': -79, 'second': 97}]
A: | [{'first': -88, 'second': 69}, {'first': -79, 'second': 97}, {'first': -58, 'second': -89}, {'first': -50, 'second': -90}, {'first': 0, 'second': 23}, {'first': 25, 'second': 77}, {'first': 38, 'second': 7}] |
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: [ 84.473 -70.319 99.144 32.902 55.943 54.732 -6.516 48.14 ]
| Solution: 99.144 |
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_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT
Solution: | turn around right thrice after look around right |
Q: 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.
Louisiana meanwhile has many factors which lead to its place on the list.
A: | Invalid |
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
See one example below:
Problem: main()
{
float a[4];
float k;
float c;
int i;
for(i=0;i<4;i++)
{
scanf("%f",&a[i]);
}
scanf("%f",&c);
c=2*3.1415926*c/360;
k=(a[0]+a[1]+a[2]+a[3])/2;
double s,sq;
sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2);
if(sq<0)
printf("Invalid input");
else
{
s=sqrt(sq);
printf("%.4f",s);
}
}
Solution: 1
Explanation: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example.
Problem: int yinshu[10000];
int j=0;
int temp=0;
int main()
{
void fenjie(int j,int sum);
int t,n[10000],i;
cin>>t;
for(i=0;i<10000;i++)
{
yinshu[i]=0;
}
for(i=0;i<t;i++)
{
cin>>n[i];
}
for(i=0;i<t;i++)
{
fenjie(1,n[i]);
cout<<temp<<endl;
temp=0;
}
return 0;
}
void fenjie(int j,int sum)
{
for(int i=2;i<=sum;i++)
{
if(sum%i==0&&yinshu[j-1]<=i)
{
yinshu[j]=i;
if(sum==i)
{
temp++;
}
else
{
fenjie(j+1,sum/i);
}
}
}
}
Solution: | 4 |
You will be given a definition of a task first, then some input of the task.
Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation.
SENDER A: Hi!
SENDER A: anione here?
Output: | Human |
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 = [0, 1, 9, 5, 4]
823
x = 2, equation weights = [1, 0, 3]
7
x = 2, equation weights = [0, 6, 3]
| 15
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [167, 683]
Student: | [167, 683] |
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.
[835, 875, 856, 101, 412, 300, 739, 389, 827, 11, 4] | [101, 739, 389, 827, 11] |
In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
One example: 14/25/1405
Solution is here: 0
Explanation: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12.
Now, solve this: 10/25/1162
Solution: | 1 |
You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
Q: 04:16 Hrs
A: 04:16 AM
****
Q: 11:23 Hrs
A: 11:23 AM
****
Q: 13:05 Hrs
A: | 01:05 PM
****
|
instruction:
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.
question:
Context: 'Me too🙂. I packed a lot of food so I have plenty to spare' 'that's awesome. I think I need more food myself, but I have tons of water.' 'I really am in need of firewood and would appreciate the extra water if you can spare some'
Utterance: 'Would it be okay if I was to get 3 food packages, and spare you 3 water packages?'
answer:
No
question:
Context: 'I would love to have the Firewood the most. ' 'Unfortunately I need firewood the most too. How about I take 2 firewood, 2 food, and 1 water?' 'I feel that I am not getting a fair deal. '
Utterance: 'Then what do you think is fair?'
answer:
No
question:
Context: 'Well, I really need water in case we get really thirsty from hiking. I also need firewood in case it gets colder and we need more. It would be cool to have more food added for dessert like s'mores, but it's not really necessary.' 'How about you take all the water and one of the firewoods, and I can have all the food and 2 of the firewoods' 'Let me think about it. What supplies do you need?'
Utterance: 'I won't be doing a lot of hiking, but will probably have a few campfires with food'
answer:
| Yes
|
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Q: Garrett John Hedlund was born on September 3, 1984, in Roseau, Minnesota, to Kristine Anne (née Yanish) and Robert Martin Hedlund
A: | September 3, 1984 |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
[EX Q]: Antidepressants and myoclonus: case report.
[EX A]: non-adverse drug event
[EX Q]: METHODS: A 55-year-old woman became stuporous after overdose with lamotrigine (LTG) and valproic acid (VPA) tablets.
[EX A]: adverse drug event
[EX Q]: Food and Drug Administration in 1989 for treatment of severely ill schizophrenic patients.
[EX A]: | non-adverse drug event
|
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.
Q: Set1: '{9, 20, 12, 1}', Set2: '{4, 7, 14, 15, 18}'. How many elements are there in the union of Set1 and Set2 ?
A: | 9 |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Megan Denise Fox was born on May 16, 1986 in Oak Ridge, Tennessee, to parents Gloria Darlene (née Cisson) and Franklin Thomas Fox | May 16, 1986 |
Given the task definition, example input & output, solve the new input case.
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: Angola
Output: Republic
Republic is the government type of the country called Angola.
New input case for you: Australia
Output: | Federation Constitutional Monarchy |
Given the task definition and input, reply with output. 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.
pluck
| pull |
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: [163, 133, 782, 293, 503, 751, 390]
A: [163, 293, 503, 751]
****
Q: [829, 371, 377, 497, 839, 5, 653, 617, 907, 867, 827, 350, 399, 947, 483, 601, 577]
A: [829, 839, 5, 653, 617, 907, 827, 947, 601, 577]
****
Q: [557, 318, 114, 751, 997]
A: | [557, 751, 997]
****
|
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: [ 37.767 -94.042 -52.652 45.373 -42.488 -0.814 82.118]
| Solution: -94.042 |
Definition: 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.
Input: Estonia
Output: | .ee |
instruction:
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.
question:
afamfmfaafff
answer:
faaf
question:
aaqaeaaeqqeq
answer:
eaae
question:
nggnngwwww
answer:
| nggn
|
Definition: In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character.
Input: fokkofffoofkok
Output: | fokkof |
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: [35.535, 131.4, 32.719, 198.861, 113.219, 72.839]
A: | [0.061 0.225 0.056 0.34 0.194 0.125] |
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.
Problem:I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_LEFT I_TURN_LEFT I_JUMP I_TURN_LEFT I_TURN_LEFT I_JUMP
Solution: | walk opposite right and jump opposite left twice |
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.
Like I said, if the person isn't convicted, then they will not be murdered in the electric chair, or by lethal injection.
Output: | Valid |
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: Pipets more accurately measure compared to a graduated cylinder.
A: what more accurately measure compared to a graduated cylinder?
****
Q: Fact: Exercise has a positive impact on human longevity and reproduction.
A: Human longevity and reproduction are positively impacted by:?
****
Q: Fact: epiphytes live everywhere on earth.
A: | Where do epiphytes live?
****
|
TASK DEFINITION: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
PROBLEM: solution
SOLUTION: lucian
PROBLEM: use
SOLUTION: truce
PROBLEM: write
SOLUTION: | night
|
Given the task definition and input, reply with output. 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': -46, 'second': 38}, {'first': 50, 'second': -17}, {'first': -30, 'second': -79}, {'first': -29, 'second': 65}, {'first': 29, 'second': -55}, {'first': 59, 'second': -62}]
| [{'first': -46, 'second': 38}, {'first': -30, 'second': -79}, {'first': -29, 'second': 65}, {'first': 29, 'second': -55}, {'first': 50, 'second': -17}, {'first': 59, 'second': -62}] |
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.
cpPNpIzoPNSSxvdvq, KEvIzoPNSSyQY
| cpPNpinopsszxvdvq, KEvinopsszyQY |
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: I feel like we have that focus in common.
Output: | I guess we're not so different after all. |
Subsets and Splits