prompt
stringlengths 114
7.32k
| response
stringlengths 1
523
|
---|---|
Detailed Instructions: 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.
Problem:Brittany
Solution: | .bzh |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
gocogccocco
Solution: gocog
Reason: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
Now, solve this instance: yyyyyyyyyyyyyyy
Student: | yyyyyyyyyyyyyyy |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK
Student: | run around left twice and walk left thrice |
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Q: What are the first and last names of all customers who lived in Lockmanfurt?
A: | SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt" |
Given the task definition, example input & output, solve the new input case.
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: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Output: Advertising
The given policy text states that it uses user information for 'advertising' explicitly
New input case for you: The site collects your IP address or device IDs for an unspecified purpose. Collection happens in an unspecified way, and your data is aggregated or anonymized.
Output: | Unspecified |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Q: world
A: hurled
****
Q: long
A: wrong
****
Q: separate
A: | tailgate
****
|
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
[273, 491, 466, 970, 311, 949, 383, 911, 857, 989]
Answer: | [491, 311, 383, 911, 857] |
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: gggggxffggfxff
Answer: ggggg
Question: gnfnggnfgngfgn
Answer: fnggnf
Question: eeeykyeeekey
Answer: | eeeykyeee
|
Given the task definition, example input & output, solve the new input case.
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]
Output: [0.167, 0.333, 0.500]
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.
New input case for you: [-90.478, 206.887]
Output: | [-0.777 1.777] |
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.
Input: Consider Input: [241, 347, 566, 101, 709, 119, 47, 967, 499, 872, 2, 154, 971, 532]
Output: [241, 347, 101, 709, 47, 967, 499, 2, 971]
Input: Consider Input: [811, 342, 23, 369, 717]
Output: [811, 23]
Input: Consider Input: [971, 908, 503, 823, 5, 627, 229, 297, 358, 247, 784, 286, 373, 607, 103, 969]
| Output: [971, 503, 823, 5, 229, 373, 607, 103]
|
Q: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Sentence: Larry Ellison and Bob Oats were working on a consulting project {{ for }} the CIA ( Central Intelligence Agency ) .
Word: for
A: | IN |
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 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: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Solution: -LRB-
Why? "(" is the symbol for Left Parantheses (-LRB-).
New input: Sentence: While it 's not cheap , Alto will give you an experience {{ you }} 'll never forget .
Word: you
Solution: | PRP |
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: Ibuprofen-induced meningitis: detection of intrathecal IgG synthesis and immune complexes.
A: | adverse drug event |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Q: track
A: | plaque |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
consider
bidder
held
spelled
play
| day
|
instruction:
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.
question:
Sentence: It 's historical for Sf , so when your aunte comes for {{ a }} visit , take her there .
Word: a
answer:
DT
question:
Sentence: {{ ( }} I just thought he wanted me to see one of those chain letter things again ) so I fineally checked it , and it was an e mail from southwest airlines telling me the flight dates for out family trip to Florida !!!
Word: (
answer:
-LRB-
question:
Sentence: {{ 1 }} ) Edison International - Swap with Enron Europe Ltd. ( 2 in total )
Word: 1
answer:
| LS
|
TASK DEFINITION: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
PROBLEM: single
SOLUTION: jingle
PROBLEM: poor
SOLUTION: jour
PROBLEM: they
SOLUTION: | wey
|
Given the task definition and input, reply with output. 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.
সময়ের বিবর্তনে মানুষ যখন শেখ মুজিবের ছবিতেও জুতা নিক্ষেপ করবে, তখন কি কারো চেতনায় লাগবে?
| non-religious |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Ex Input:
Find the name of different colleges involved in the tryout in alphabetical order.
Ex Output:
SELECT DISTINCT cName FROM tryout ORDER BY cName
Ex Input:
What are the titles and authors or editors that correspond to books made after 1989?
Ex Output:
SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989
Ex Input:
Show the product name and total order quantity for each product.
Ex Output:
| SELECT T1.product_name , sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id
|
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 is the number of days that had an average humity above 50 and an average visibility above 8?
Output: | SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8 |
Definition: In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Input: Syria
Output: | Republic |
Given a 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_LOOK 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_TURN_LEFT I_LOOK
A: look around left twice after look twice
****
Q: I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK
A: look around left after jump left twice
****
Q: I_TURN_RIGHT I_TURN_RIGHT I_TURN_LEFT I_TURN_LEFT I_LOOK I_TURN_LEFT I_TURN_LEFT I_LOOK
A: | look opposite left twice after turn right twice
****
|
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?"
Ex Input:
Fact: Growth is faster in infancy than it is in the time when breasts grow.
Ex Output:
When is growth faster?
Ex Input:
Fact: The leg straightens when muscle fibers get shorter.
Ex Output:
What happens to your leg when muscle fibers shorten?
Ex Input:
Fact: molecules of tRNA bring proteins to the ribosome.
Ex Output:
| what do molecules of tRNA bring to the ribosome?
|
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] |
instruction:
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.
question:
Query: SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:people.person.gender ns:m.02zsn .
?x0 ns:people.person.nationality ns:m.09c7w0 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M3 ns:film.film.written_by ?x0
} Question: Was M3 written by , produced by , and directed by a female American star of M1
answer:
1
question:
Query: SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?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 ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.cinematographer.film M1 .
FILTER ( ?x0 != ?x1 )
} Question: Which film editor married a art director and was influenced by M1
answer:
0
question:
Query: SELECT count(*) WHERE {
?x0 a ns:film.producer .
M1 ns:people.person.nationality ns:m.03rjj .
M1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x0
} Question: What did a screenwriter 's sibling and parent write
answer:
| 0
|
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: Dogs are trained on how to behave through play.
A: | How are dogs trained on how to behave? |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
One example: Find the id and city of the student address with the highest average monthly rental.
Solution is here: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example.
Now, solve this: What is the average price for a lesson taught by Janessa Sawayn?
Solution: | SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" |
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: [247.744, 94.259, 134.732, 180.439, 175.398, 39.102, 64.245, 37.514, 169.949, 185.453]
A: | [0.186 0.071 0.101 0.136 0.132 0.029 0.048 0.028 0.128 0.14 ] |
instruction:
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.
question:
Anterior uveitis and secondary glaucoma resulting from intraocular ointment has not been reported.
answer:
non-adverse drug event
question:
Three cases are described in which periorbital topical corticosteroids appear to have resulted in raised intraocular pressure or glaucoma.
answer:
non-adverse drug event
question:
Five patients are described in whom only gentamicin sulfate appeared responsible for acute renal failure.
answer:
| adverse drug event
|
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: [504, 481, 510, 314, 727, 892, 51, 427, 313, 466, 805, 967, 917, 967]
Solution: | [727, 313, 967, 967] |
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.
--------
Question: [ 18.425 -81.54 -81.788 -94.817 23.374 -69.644 -16.076 -27.866]
Answer: -94.817
Question: [-92.137 -2.754]
Answer: -92.137
Question: [-7.901 75.413 45.923 6.355]
Answer: | 75.413
|
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 restaurantes con 1 estrella(s) en el código postal " 49503 ".
Ex Output:
search for 1 star restaurants in the " 49503 " zip code .
Ex Input:
¿cuál es el número de teléfono del " pizza hut " más cercano?
Ex Output:
what is the phone number of the nearest " pizza hut " ?
Ex Input:
¿cuántas opiniones de 1 estrella tiene " peet 's coffee "?
Ex Output:
| how many 1 star reviews are there for " peet 's coffee " ?
|
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.
--------
Question: gTVFxrlbKgnwIzmGTwFxWvWejeIbG, SqNwrlbKgnwIzmGTlrlZxRT
Answer: gTVFxbggiklmnrtwzwFxWvWejeIbG, SqNwbggiklmnrtwzlrlZxRT
Question: YAiCuGJPydYvT, nvvghCuGJPydGUkJTJo
Answer: YAicdgjpuyYvT, nvvghcdgjpuyGUkJTJo
Question: lTvGOSJpmnlPlGtPGiruNWCC, rERCJCqMmnlPlGtPGirREGJNHAGyH
Answer: | lTvGOSJpggillmnpprtuNWCC, rERCJCqMggillmnpprtREGJNHAGyH
|
Given the task definition and input, reply with output. 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
| look left |
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, 2, 3, 4, 6, 13, 14, 16, 19, 20}', Set2: '{1, 3, 4, 5, 9, 12, 16, 18, 19}'. How many elements are there in the union of Set1 and Set2 ?
A: | 14 |
You will be given a definition of a task first, then some input of the task.
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_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT
Output: | jump opposite right thrice and turn around left thrice |
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: | non-religious |
Given the task definition and input, reply with output. 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.
[ 44.133 91.205 -21.93 46.457 -64.578 -13.737 48.987 87.315 7.395
86.145]
| 91.205 |
You will be given a definition of a task first, then some input of the task.
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...'.
Ken, do you think Chuck bought it? Do you think he bought that you were a zombie?
Output: | He was busy on his phone playing Plants vs Zombies. I just figured I'd go with it and keep the reality real. So, I bit him. |
Definition: 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
Input: [18, 23, 28, 33, 38, 43, 48, 53, 58, 63, 68, 73, 78, 83, 88, 93, 98, 103, 108, 113, 118, 123, 128, 133, 138]
Output: | 1 |
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: 11/43/1764
| Solution: 0 |
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.
[EX Q]: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by M1 .
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.executive_produced_by M0 .
?x1 ns:people.person.nationality ns:m.0d060g .
?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x2 .
?x2 ns:film.actor.film/ns:film.performance.film M3 .
FILTER ( ?x1 != ?x2 )
} Question: What was directed by M1 , executive produced by M0 , and executive produced by M3 's star 's Canadian sibling
[EX A]: 1
[EX Q]: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M0 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
?x1 ns:film.producer.films_executive_produced M3
} Question: What was produced by M3 's executive producer and star , distributed by M0 , and distributed by M1 and M2
[EX A]: 1
[EX Q]: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M0 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
?x1 ns:film.producer.films_executive_produced M3
} Question: What was produced by M3 's executive producer and star , distributed by M0 , and distributed by M1 and M2
[EX A]: | 1
|
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: Consider Input: [45.532, 131.328, 173.809, -99.361, 45.882, 226.094, 12.686]
Output: [ 0.085 0.245 0.324 -0.185 0.086 0.422 0.024]
Input: Consider Input: [229.904, 41.361, -38.768, 166.156, 187.51, 91.581, -43.883, 102.522, 198.448, 206.706]
Output: [ 0.201 0.036 -0.034 0.146 0.164 0.08 -0.038 0.09 0.174 0.181]
Input: Consider Input: [136.555, 88.579, -32.359, 134.214, 168.142, 148.262, 62.283, 5.042, 206.734, 211.87]
| Output: [ 0.121 0.078 -0.029 0.119 0.149 0.131 0.055 0.004 0.183 0.188]
|
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.
See one example below:
Problem: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
Solution: religious
Explanation: Here it expresses hate against the religion, hence tagged as religious.
Problem: এই সেই ভয়ঙ্কর ঘটনা যার জন্য তৃণমূল কংগ্রেস বিখ্যাত হয়ে গেলো
Solution: | non-religious |
Q: 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: A camera is used for recording still and moving pictures.
A: | A camera records:? |
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.
pretty logical... I mean, the killer is not going to take away innocent lives anymore because the killer is dead.
Valid
I believe that we should attempt to prevent suicide in the general population.
Invalid
I am surprised at people who oppose the death penalty but are quite content to lock a human being up like an unwanted pet rat, for a lifetime.
| Valid
|
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:An unnamed third party does receive your unspecified personal information for analytics or research. The data is personally identifiable. You can opt out by contacting the company for the use of your information.
Solution: | Analytics/Research |
Detailed Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Q: low
A: | go |
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.
[ 74.117 -41.219]
Output: | 74.117 |
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
A named third party does track on the first party website or app your cookies or tracking elements for analytics or research. You can configure your privacy with user settings provided by the site for the collection or sharing of your information. | Analytics/Research |
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.
[-24.451 53.241]
Output: | 53.241 |
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.
The reported cases of in utero exposure to cyclosposphamide shared the following manifestations with our patient: growth deficiency, developmental delay, craniosynostosis, blepharophimosis, flat nasal bridge, abnormal ears, and distal limb defects including hypoplastic thumbs and oligodactyly. | adverse drug event |
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.
আমি সরকারি চাকরি করি, তোমার এই এক কথায় তোমার দোন আমি মুখে নিতেও রাজি | non-religious |
Given the task definition, example input & output, solve the new input case.
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
Output: 0
It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12.
New input case for you: 15/14/2002
Output: | 0 |
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 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.
gocogccocco
Solution: gocog
Why? The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
New input: sssususuus
Solution: | susus |
Given the task definition, example input & output, solve the new input case.
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?"
Example: Fact: pesticides can harm animals.
Output: What can harm animals?
It's a good question because it is formed by simply replacing the word "pesticides" with "what".
New input case for you: Fact: peat causes weathering.
Output: | what does peat cause? |
Detailed Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Problem:just
Solution: | dust |
Definition: 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".
Input: 05/27/1513
Output: | 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: I_TURN_LEFT I_JUMP
Example solution: jump left
Example explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Problem: I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT
| Solution: walk around left and turn left thrice |
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
Let me give you an example: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
The answer to this example can be: religious
Here is why: Here it expresses hate against the religion, hence tagged as religious.
OK. solve this:
দালাল শুয়ারের বাচ্চা গুলোকে ধরে গুলি করে মারা উচিত
Answer: | non-religious |
Given 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_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 I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK | turn around right thrice and look opposite right thrice |
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.
BIoKOXkXGXKniMiJjQARZVNWstkegYcVMejhnJwJt, zFkxZUekJzwoMiJjQARZVNWstkuvcKBodKFkhU
A: | BIoKOXkXGXKniaijjkmnqrstvwzegYcVMejhnJwJt, zFkxZUekJzwoaijjkmnqrstvwzuvcKBodKFkhU |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: x = 0, equation weights = [2, 0, 6, 7, 8]
Student: | 8 |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Example input: difficult
Example output: No
Example explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Q: your
A: | pour |
Q: 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 = 5, equation weights = [3, 4, 0]
A: | 95 |
Instructions: 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: Samoa
Output: | .ws |
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
A user can delete their account (although the company or organization may continue to keep some data), within the scope of information explicitly provided by the user.
Not Specified
An unnamed third party does receive your unspecified personal information for an additional (non-basic) service or feature.
Additional service/feature
An unnamed third party does not receive your unspecified personal information for marketing purposes. You can configure your privacy using a method outside our label scheme.
| Marketing
|
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: Both the death penalty and a life sentence would have prevent further murders.
A: | Valid |
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.
Find the id and name of customers whose address contains WY state and do not use credit card for payment.
Output: | SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE "%WY%" AND payment_method_code != "Credit Card" |
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:[877, 293]
Solution: | [877, 293] |
Q: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
IFNalpha-induced recurrence of Graves' disease ten years after thyroidectomy in chronic viral hepatitis C.
A: | adverse drug event |
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
An unnamed third party does collect on the first party website or app your location information for marketing purposes.
Output: | Marketing |
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Let me give you an example: Set1: '{2, 3, 6, 9, 10, 14, 15, 20}', Set2: '{3, 5, 7, 9, 12, 15, 16}'. How many elements are there in the union of Set1 and Set2 ?
The answer to this example can be: 12
Here is why: The union of Set1 and Set2 is {2, 3, 5, 6, 7, 9, 10, 12, 14, 15, 16, 20}. It has 12 elements. So, the answer is 12.
OK. solve this:
Set1: '{9, 10, 3, 12}', Set2: '{3, 5, 7, 8, 10, 15, 16, 20}'. How many elements are there in the union of Set1 and Set2 ?
Answer: | 10 |
You will be given a definition of a task first, then some input of the task.
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.
cuububuccbububu
Output: | ububu |
You will be given a definition of a task first, then some input of the task.
In this task, you are given a country name and you need to 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.
Australia
Output: | Federation Constitutional Monarchy |
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: Passive immunity lasts only as long as the proteins that attach to an antigen survive in body fluids.
A: | What lasts only as long as the proteins that attach to an antigen survive in body fluids? |
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.
See one example below:
Problem: I_TURN_LEFT I_JUMP
Solution: jump left
Explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Problem: I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_RIGHT
Solution: | jump around left and turn right |
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: Nerve impulses are conducted via myelin.
Output: | How are nerve impulses conducted? |
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: llztzzltlzzt
Solution: | tzzltlzzt |
Teacher: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...'.
Teacher: Now, understand the problem? Solve this instance: Hate jazz? I love that stuff.
Student: | We're playing it in the Home Depot right now. |
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.
Let me give you an example: gocogccocco
The answer to this example can be: gocog
Here is why: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
OK. solve this:
caaccaccac
Answer: | accacca |
Detailed Instructions: 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.
Q: enséñeme un restaurante de 0 estrellas cerca.
A: | give me a 0 star restaurant nearby . |
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Q: jet
A: | craft |
Detailed Instructions: Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone.
Problem:My mom has always been a bit of an addictive personality type. Growing up she always dreamed of winning the lottery and couldnt stop. This caused my dad to leave. After he left she turned to alcohol. She ended up losing her job and her home and came to live with me. In my culture it is seen as taboo to turn away family so I just couldnt. 3 weeks ago it hit a tipping point though. I came back from the gym and mom was passed out. She puked on the floor and an entire bottle of wine was unwrapped and consumed. I woke her up and she sarcastically apologized. She asked me to clean it up and that she would be better and i couldnt stand it. I went to my room and slammed the bathroom door shut. because i moved it so quickly it pushed the towel rack over and ended up falling into the wall leaving a huge dent in the drywall. Not only is my house a mess because of her, now i broke my wall. I cant stand her and something needs to change.
Solution: | imagined |
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: Find the id of courses which are registered or attended by student whose id is 121?
A: SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121
****
Q: How many regions do we have?
A: SELECT count(*) FROM region
****
Q: Show the park of the roller coaster with the highest speed.
A: | SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1
****
|
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[1, 2, 3]
Solution: [0.167, 0.333, 0.500]
Reason: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Now, solve this instance: [9.697, 245.001, 97.098, 169.882, 194.341, -5.02, 213.172]
Student: | [ 0.01 0.265 0.105 0.184 0.21 -0.005 0.231] |
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: bhjhhbbbbjbbbh
Example Output: bbbjbbb
Example Input: yyllyylhyyyl
Example Output: yyllyy
Example Input: phhhmhmmhphm
Example Output: | mhphm
|
Detailed Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
See one example below:
Problem: difficult
Solution: No
Explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Problem: tone
Solution: | phone |
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: apppapadpap
Output: | apppa |
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.
Input: I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK
Output: | walk right thrice after run around right twice |
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: crystal
Solution is here: rock
Explanation: A crystal is a type of rock, so rock is a valid hypernym output.
Now, solve this: uterine
Solution: | genital |
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: In all honesty im glad i am not someone who has to decide murder as punishment for someone who has committed crimes.
Answer: Valid
Question: Because they love to butt-fuck and they're usually pro-capitol punishment.
Answer: Valid
Question: By not giving the death penalty to a slaughtering murderer, we are telling the world that the life of this murderer is worth more than that of his victim.
Answer: | Valid
|
Given the task definition and input, reply with output. 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_JUMP I_JUMP I_TURN_LEFT I_LOOK
| look left after jump twice |
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 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.
[240.353, 196.108, 97.492, 223.863, 73.034]
Output: | [0.289 0.236 0.117 0.269 0.088] |
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: We describe 2 children with cerebral palsy who suffered significant morbidity immediately after treatment with hyperbaric oxygen.
A: adverse drug event
****
Q: Antibiotic-associated colitis (pseudomembranous colitis) developed in four patients with spinal cord injury and taking oral trimethoprim-sulfamethoxazole.
A: adverse drug event
****
Q: While undergoing treatment with albendazole, he developed worsening diarrhea with abdominal pain and fever.
A: | adverse drug event
****
|
Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
--------
Question: Fact: pollen consists of tiny grains that are the sperm of plants.
Answer: pollen consists of tiny grains of what part of plants?
Question: Fact: Plants detect light and dark because of their circadian rhythm.
Answer: What do plants detect because of their circadian rhythm?
Question: Fact: the Earth being tilted on its rotating axis causes yearly temperature variations.
Answer: | What causes yearly temperature variations?
|
You will be given a definition of a task first, then some input of the task.
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.
rsirrisrssrr
Output: | rsirrisr |
Detailed Instructions: In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Q: What is the total population and average area of countries in the continent of North America whose area is bigger than 3000?
A: | SELECT sum(Population) , avg(SurfaceArea) FROM country WHERE Continent = "North America" AND SurfaceArea > 3000 |
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.
Let me give you an example: Context: 'That sounds pretty reasonable as I am in need of firewood the most. Would it be most reasonable to each take what we need most and split the water down the middle?' 'Yes, it would.' 'I think that sounds fair. The problem is that there are 3 waters and one of us would get two and the other one. How should we sort that?'
Utterance: 'You can take the two water. I am not that thirsty most days.'
The answer to this example can be: No
Here is why: In this utterance, the participant does not use self-need since they do not talk about any need for themselves.
OK. solve this:
Context: 'I would be open to that if you could give me three packages of water 🙂' 'Hmmm...I'm pretty muddy due to clumsiness, so I may need one extra. I could give you two waters and all of the firewood. What do you think? 🙂' 'So are you suggesting that I would get 2 waters, 3 firewood, and no food?'
Utterance: 'Right! Well, beyond the food you already have. '
Answer: | No |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
[Q]: flower
[A]: flour
[Q]: common
[A]: ahmann
[Q]: more
[A]: | pour
|