SMART
Collection
Collection of models and datasets used for ACL 2024 paper, SMART - Submodular Data Mixture Strategy for Instruciton Tuning
•
338 items
•
Updated
prompt
stringlengths 98
13.4k
| response
stringlengths 1
1.45k
|
---|---|
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you are 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 city of the student address with the highest average monthly rental.
Solution: 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
Why? 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.
New input: Find the number of bands.
Solution: | SELECT count(*) FROM Band |
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: Over the next 15 h she developed progressive hemolysis and methemoglobinemia.
A: non-adverse drug event
****
Q: Such anagen effluvium with lichenoid eruption following INH therapy has not been observed previously.
A: adverse drug event
****
Q: He underwent uneventful cataract extraction surgery and intraocular lens implantation of the right eye.
A: | non-adverse drug event
****
|
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: gocogccocco
Example solution: gocog
Example explanation: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example.
Problem: iiiltlitlttli
| Solution: iltli |
Definition: 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.
Input: ইনু ভাই, ভুমিকম্পের সময় নাস্তিকরা কাকে ডাকে? আরে পাগল বিপদের সময় সবাই আল্লাহরেই ডাকে
Output: | religious |
[Q]: Generate a 2-star review (1 being lowest and 5 being highest) about an app with package org.wordpress.android.
****
[A]: Bug Everytime I try to upload a photo it crashes
input: Please answer the following: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package org.ppsspp.ppsspp.
++++++++++
output: Thnk
Please answer this: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
++++++++
Answer: Super tare! Dar ma deranjeaza ca trebuie sa fac updeituri
Problem: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package org.wikipedia.
A: Good app Really good app
Problem: Given the question: Generate a 2-star review (1 being lowest and 5 being highest) about an app with package com.danvelazco.fbwrapper.
++++++++++++++++++++++++++++++++
The answer is:
Almost Great idea but crashes constantly
Problem: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package org.telegram.messenger.
A: | The best! |
TASK DEFINITION: In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
PROBLEM: Command: eq { count { filter_all { all_rows ; performer 2 } } ; 6 }, interpretation: select the rows whose l record is equal to 0 . there is only one such row in the table . the skip ( club ) record of this unqiue row is brad gushue ( bally haly ) .
SOLUTION: no
PROBLEM: Command: greater { hop { filter_eq { all_rows ; year ; 1996 } ; winnings } ; hop { filter_eq { all_rows ; year ; 1998 } ; winnings } }, interpretation: select the rows whose frequency mhz record is greater than 100 . the number of such rows is 3 .
SOLUTION: no
PROBLEM: Command: eq { count { filter_eq { all_rows ; venue ; candlestick park } } ; 3 }, interpretation: select the rows whose player record fuzzily matches to tom laidlaw . take the round record of this row . select the rows whose player record fuzzily matches to chris mclaughlin . take the round record of this row . the first record is less than the second record .
SOLUTION: | no
|
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [797, 687, 816, 860, 542, 583, 227, 787, 967, 541, 23, 409, 991, 942, 557, 733, 307, 967, 853, 61]
A: [797, 227, 787, 967, 541, 23, 409, 991, 557, 733, 307, 967, 853, 61]
****
Q: [353, 953, 99, 641, 787, 160, 593, 269, 302, 315, 894, 846, 353, 461]
A: [353, 953, 641, 787, 593, 269, 353, 461]
****
Q: [950, 782, 733, 809, 662, 101, 349, 853, 85, 211, 277, 281, 367, 71, 109, 814, 596, 853, 283]
A: | [733, 809, 101, 349, 853, 211, 277, 281, 367, 71, 109, 853, 283]
****
|
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_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK
Solution: | turn opposite right twice and walk around right twice |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Set1: '{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 ?
Solution: 12
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.
New input: Set1: '{1, 3, 10, 13, 16, 18}', Set2: '{1, 14, 15}'. How many elements are there in the union of Set1 and Set2 ?
Solution: | 8 |
In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list.
[4, 3, 4, 2, 5, 2, 5, 3, 5, 2] | [] |
Definition: Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Input: chicken
Output: | food |
You will be given a definition of a task first, then some input of the task.
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
pYWIRQwFbIUdvTlFHkvgjWl, KCyQvfgwMwFbIUdvTlFHJjUMxSQssN
Output: | pYWIRQbdffhiltuvwkvgjWl, KCyQvfgwMbdffhiltuvwJjUMxSQssN |
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package org.torproject.android.
A: | Nice |
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
[-5, -52, 96, -14, -92, -25] | 9 |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Q: Emily Olivia Leah Blunt was born on 23 February 1983 in the London Borough of Wandsworth, the second of four children born to Joanna, a former actress and teacher, and barrister Oliver Blunt, QC
A: | 23 February 1983 |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Input: Consider Input: If you support the death penalty and concede that an innocent man could be put to death, you must be willing to put your name in the hat, with every one else, to have the government execute you by mistake.
Output: Valid
Input: Consider Input: People who commit bad crimes shouldn't be allowed to suffer in prison for the rest of their life.
Output: Valid
Input: Consider Input: America should be streamlining it's justice system, not allowing the liberals to complicate it more.
| Output: Invalid
|
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Example Input: Show institution names along with the number of proteins for each institution.
Example Output: SELECT T1.institution , count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id
Example Input: How much money did Lucas Mancini spend?
Example Output: SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
Example Input: What are the country names, area and population which has both roller coasters with speed higher
Example Output: | SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55
|
Given the task definition and input, reply with output. Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
basic
| hesik |
Detailed Instructions: Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
See one example below:
Problem: Sentence: Jack played basketball after school, after which he was very tired.
Question: How long did Jack play basketball?
Category: Event Duration.
Solution: Yes.
Explanation: The question asks about the duration of playing basketball, therefore it's a "event duration" question.
Problem: Sentence: Natural Levees A flooding river often forms natural levees along its banks.
Question: How long does it take for a river to form?
Category: Event Duration.
Solution: | Yes. |
Detailed Instructions: Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
Q: Sentence: In London at mid-afternoon yesterday, Ratners's shares were up 2 pence (1.26 cents), at 260 pence ($1.64).
Question: What time did the rise happen?
Category: Absolute Timepoint.
A: | Yes. |
In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer
One example is below.
Q: 6 @ 17
A: 23
Rationale: Here, '@' represents the addition operation. So, the answer is 23 (6+17=23).
Q: 1845 # 1101 # 948
A: | -204 |
instruction:
In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list.
question:
[6, 3, 6, 1, 5, 5, 1, 0]
answer:
[3, 0]
question:
[7, 6, 6, 7, 3]
answer:
[3]
question:
[2, 3, 2, 0, 0, 1]
answer:
| [3, 1]
|
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Example: The fact that you do not want to donate to these poor, needy people only shows me that you really do not care about the embryos
Example solution: Invalid
Example explanation: It is not an argument on the topic of death penalty.
Problem: Do not say,"for the sake of justice" alone, because that justice must have a reason for being.
| Solution: Invalid |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
--------
Question: [{'first': -41, 'second': -62}, {'first': -3, 'second': -75}]
Answer: [{'first': -41, 'second': -62}, {'first': -3, 'second': -75}]
Question: [{'first': -31, 'second': -57}, {'first': -34, 'second': -23}, {'first': -9, 'second': 78}, {'first': 12, 'second': 22}, {'first': 98, 'second': -89}]
Answer: [{'first': -34, 'second': -23}, {'first': -31, 'second': -57}, {'first': -9, 'second': 78}, {'first': 12, 'second': 22}, {'first': 98, 'second': -89}]
Question: [{'first': -68, 'second': -87}, {'first': -83, 'second': -85}, {'first': -97, 'second': 79}, {'first': -68, 'second': 85}]
Answer: | [{'first': -97, 'second': 79}, {'first': -83, 'second': -85}, {'first': -68, 'second': -87}, {'first': -68, 'second': 85}]
|
In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Example Input: Echter Qualitätsschrott! . Was soll man nur mit so einem Kindertechno anfangen? Kein bass kein beet nichts, und alles irgendwie wie von Kindern gesungen und komponiert. Das ist kein Techno. Sowas kann man vielleicht auf die nächste Tigerentenclub CD brennen aber doch nicht auf eine Future Trance! Alle vorherigen teile waren einfach Spitze und haben sich immer mehr gesteigert. Und nun? Völliger Absturz. Sorry, aber das ist doch nur Müll auf der CD.
Example Output: NEG
Example Input: gleichbleibend gute leistung! . da ich bereits seit ihrem ersten album ein fan von mando diao bin, kann ich sagen, dass auch ihr neues albun "give me fire" keineswegs seinen vorgängern in irgendeiner art und weise nachsteht! diesmal sind wieder einige schnelle nummern vertreten, die meiner meinung nach am besten zu mando diao passen. vor allem "come on come on" und "give me fire" verleihen dem album den richtigen schwung. allerdings gehört auch die etwas langsamere nummer "high heels" mittlerweile zu meinen absoluten lieblingssongs obwohl ich sagen muss, dass einige lieder erst nach mehrmaligem hören richtig ins ohr gehen. auf jeden fall ist dieses album ein muss für jeden fan und auch für alle, die vielleicht erst durch ihren charterfolg "dance with somebody" auf diese einzigartigen schweden gekommen sind!
Example Output: POS
Example Input: Finger weg!!! . Diese CD ist so ziemlich die schlechteste, die ich mir jemals gekauft habe und sie wird es wohl bis zum Ende meines Lebens bleiben! Was Radiohead hier abliefern würde bei anderen Bands unter dem Kapitel "Warmspielen" im Mülleimer landen. Eine Frechheit, das ganze auf CD zu pressen und zu verkaufen. Das ist die pure Verarschung des Käufers und somit sicher das letzte Mal, dass Radiohead von mir Geld bekommen haben.
Example Output: | NEG
|
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 |
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy.
So while we want to make economic profit for ourselves and our customers, we are willing to do it with a long-term view, and we like to have a wider definition of profits than just the economic profit in the next quarter. | I željeli bi imati širu definiciju profita od čistog ekonomskog profita u sljedećem kvartalu. |
Detailed Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Q: Sentence: Chasing them on issues from the day I moved in ( many of them still unresolved as I left ) to all {{ sorts }} of farcical issues with funds , after I left . . . . as soon as I could .
Word: sorts
A: | NNS |
Detailed Instructions: In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Problem:Set1: '{4, 5, 6, 7, 8, 12, 14, 15, 19}', Set2: '{9, 20, 4, 13}'. How many elements are there in the union of Set1 and Set2 ?
Solution: | 12 |
Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
[Q]: tapped
[A]: untapped
[Q]: nonnative
[A]: native
[Q]: synclinal
[A]: | anticlinal
|
TASK 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
PROBLEM: [4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120]
SOLUTION: 1
PROBLEM: [23, 33, 43, 53, 63, 73, 83, 93, 103, 113, 123, 133, 143, 153]
SOLUTION: 1
PROBLEM: [121, 117, 113, 109, 105, 101, 97, 93, 89, 85, 81, 77, 73, 69, 65, 61, 57, 53, 49, 45, 41, 37, 33, 29, 25, 21, 17, 13, 9, 5]
SOLUTION: | 1
|
In this task, you are given a movie review in Persian, and you have to extract aspects of the movie mentioned in the text. We define aspects as music(موسیقی), directing(کارگردانی), screenplay/story(داستان), acting/performance(بازی), cinematography(فیلمبرداری), and scene(صحنه). Although there might be multiple aspects in a review, we only need you to write one aspect.
Example input: فیلم متوسطی بود از لحاظ داستان ولی خوشحالم که سینمای ایران یک نیم نگاهی به این قشر از جامعه مون کرد.نا گفته نماندگفتگو های پر تامل و تاثیرگذاری داشت با این حال امیدوارم که تماشاچیان عزیز در دام "خطالی عاطفی" نیوفتاده باشند.
Example output: داستان
Example explanation: This is a good example. The review is about the story of the movie.
Q: فیلم از لحاظ مضمون و فیلمنامه خوبه بزرگترین ایرادش اینه چن تا سکانس لوس و بد داره یه جورایی کاش اونارو نداشت
A: | داستان |
Instructions: In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
Input: [3, 85, 13, 70]
Output: | 10 |
Part 1. Definition
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.
Part 2. Example
[-11, 2, 3]
Answer: -11
Explanation: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example.
Part 3. Exercise
[ 64.418 -31.787 97.67 25.876 67.857 39.621 -0.767 48.485 -34.828]
Answer: | 97.67 |
instruction:
Given news headlines and an edited word. The original sentence has word within given format {word}. Create new headlines by replacing {word} in the original sentence with edit word. Classify news headlines into "Funny" and "Not Funny" that have been modified by humans using an edit word to make them funny.
question:
News Headline: Rex Tillerson : US has ' direct channels ' to {Pyongyang}
Edit: television
answer:
Funny
question:
News Headline: ' We want revenge ' : meet the Yazidi women freeing their sisters from {Isis} in the battle for Raqqa
Edit: housework
answer:
Funny
question:
News Headline: Betsy DeVos Made Me Want To Run For {School} Board
Edit: nut
answer:
| Funny
|
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Example Input: [168, 40, 2930, 4706, 25, 52, 4]
Example Output: [128, 32, 2048, 4096, 32, 64, 4]
Example Input: [65, 1575, 518, 4434, 10, 60, 2, 138, 1519, 2208, 3101, 10, 36, 4, 150, 249]
Example Output: [64, 2048, 512, 4096, 8, 64, 2, 128, 1024, 2048, 4096, 8, 32, 4, 128, 256]
Example Input: [43, 1077, 1006, 2994, 23, 59, 4, 71, 232, 1917, 3335, 23, 70, 4]
Example Output: | [32, 1024, 1024, 2048, 16, 64, 4, 64, 256, 2048, 4096, 16, 64, 4]
|
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.
Problem:Who is the first student to register? List the first name, middle name and last name.
Solution: | SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1 |
instruction:
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
question:
The site collects your financial information for service operations or security. Collection happens when you explicitly provide information in an unspecified way.
answer:
Service Operation and Security
question:
Another part of the company or institution does do something unspecified with your contact information for a basic service or feature. This applies to users with accounts.
answer:
Basic service/feature
question:
The policy makes a statement about how data from Californian users is treated (e.g., California privacy rights).
answer:
| Not Specified
|
You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
One example is below.
Q: password = a
A: 5
Rationale: Using 5 steps, it can become a strong password
Q: password = ToYLiaQVfIMhIS7B2IK.aPDWIPCYW6.!mL0il20B7fb
A: | 23 |
Given the task definition, example input & output, solve the new input case.
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Example: 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.'
Output: No
In this utterance, the participant does not use self-need since they do not talk about any need for themselves.
New input case for you: Context: 'How many wood do you think you need?' 'I would like 2 of the firewood. What do you think? ' 'I don't need wood as I am usually warm so I think we can work out a deal. I like to have more water and I usually get thirsty.'
Utterance: 'That sounds good to me. 🙂 I think we can make a good deal.'
Output: | No |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Input: Consider Input: First, i'm curious to know why you call having sex "indulging", as I really don't see how sex has to do with "indulging".
Output: Invalid
Input: Consider Input: Often the people who stop would be violent criminals from going on that path are social workers.
Output: Valid
Input: Consider Input: Japan not only has and uses the death penalty, they do it the old fashioned way; by hanging the guilty with a noose and trap door.
| Output: Valid
|
Definition: 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.
Input: বিচারক মহিলাটা তো দেখতে ইদুরের মত আবার অন্য মেয়েদের কাপড় নিয়ে কথা বলে।
Output: | non-religious |
In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively.
Example Input: HBNbeVCjofkvsYuDU
Example Output: v
Example Input: dDFOr
Example Output: r
Example Input: kXKFALRqrGdhumzP
Example Output: | z
|
instruction:
Given news headlines and an edited word. The original sentence has word within given format {word}. Create new headlines by replacing {word} in the original sentence with edit word. Classify news headlines into "Funny" and "Not Funny" that have been modified by humans using an edit word to make them funny.
question:
News Headline: May says UK will still {work} with US despite intel furor
Edit: Dance
answer:
Funny
question:
News Headline: Maryam Mirzakhani , Only Woman to Win a Fields Medal , {Dies} at 40
Edit: Farms
answer:
Not Funny
question:
News Headline: Dick 's soaring sales prove it can succeed without assault {rifles}
Edit: skis
answer:
| Funny
|
Detailed Instructions: We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Problem:The DP serves no purpose except for a barbaric outlet for hate.
Solution: | Valid |
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Example Input: THEM: i'd like a ball and 2 books and you can have all the hats. deal? YOU: okay deal THEM: great confirming i get 1 ball and 2 books.
Example Output: Yes
Example Input: THEM: if i can have the book and the ball you can have the hats YOU: i have to have the ball THEM: you can have the ball if i can have everything else YOU: how about the ball and 1 hat THEM: okay that works.
Example Output: Yes
Example Input: THEM: what would you like YOU: i'd love the hats. THEM: you can have the hats if i can have teh rest YOU: alrighty then. THEM: deal.
Example Output: | Yes
|
Detailed Instructions: Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity).
Problem:Entity 1: box
Entity 2: bottom
Solution: | yes |
Given the task definition and input, reply with output. Given news headlines and an edited word. The original sentence has word within given format {word}. Create new headlines by replacing {word} in the original sentence with edit word. Classify news headlines into "Funny" and "Not Funny" that have been modified by humans using an edit word to make them funny.
News Headline: Cruise line Carnival Corp. joins the fight against Bermuda 's same-sex {marriage} ban
Edit: donut
| Not Funny |
TASK DEFINITION: The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
PROBLEM: Context: 'I'm thinking I'l get 2 firewood, and 2 water and 1 food. I'm not sure what you need, but we can figure it out. ' 'my highest priority is water, i need it to stay hydrated from the camping beers' 'Who doesn't? I need more wood. I'm skinny. I get cold easily. Beer hidrates dude 🙂'
Utterance: 'ha no prob on the wood, its out there in nature so i can do with less of it hows 3 water, 1 food, 0 wood sound'
SOLUTION: No
PROBLEM: Context: 'Camping yay!' 'Hello! how are you? hoping today is finding you well. I was wondering if I can get all 3 of your Firewood, I am willing to trade for all 3 waters. I am camping with 40 kids, its our annual youth camp. its rainy season too, I really want to ensure I have enough dried wood with us. need lots of firewood for the amount of cooking I will be doing, keep the camp warm, and specially to keep those pesky bugs away. what do you think?'
Utterance: 'I could really use the firewood too, it will be very cold where we are going. Since it will be cold, we will not be drinking much water. How about 2 firewood for you, 3 food for me?, '
SOLUTION: Yes
PROBLEM: Context: 'The trip is great, how about you?' 'It is great too. However i am feeling very cold i need a lot of firewood to light a fire.' 'We have -10 degrees temperatures at night where I am camping!!'
Utterance: 'It is even worse here and I am not feeling well'
SOLUTION: | Yes
|
Q: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Destiny top/White Bird flop . Vanessa Mae probiert auf dieser CD einiges Neues aus, mit mehr oder weniger Erfolg. Einige Titel, besonders Destiny, sind sehr extrem gigantisch gut! Aber andere hier besonders White Bird sind nicht wirklich berauschend. Es ist nicht das Vanessa Mae nicht singen könnte, ganz im gegenteil ihr Stimme gefällt mir (ich freu mich schon in Zukunpft mehr von ihr zuhören), aber das Lied ist schwach. Dieser Schlager hätte nie wieder auferstehen dürfen! Dies war ein Fehler! Dafür ein Stern abzug. Insgesamt lohnt sich diese CD auf jeden Fall!
A: | POS |
You will be given a definition of a task first, then some input of the task.
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
original sentence: Anna did a lot worse than her good friend Lucy on the test because she had studied so hard . paraphrase: heather did a lot worse than her good friend lara on the test because she had studied so hard .
Output: | Synonym |
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: [743, 29, 719, 358, 671, 241, 857, 533, 467, 617, 27, 514, 560]
Output: [743, 29, 719, 241, 857, 467, 617]
Input: Consider Input: [718, 638, 83, 229, 975, 331, 44, 191, 60, 57, 317, 363, 419]
Output: [83, 229, 331, 191, 317, 419]
Input: Consider Input: [743, 25, 404, 428, 419, 739, 607, 761, 659, 821, 571, 37, 395, 47, 283, 840, 103, 929, 42, 179]
| Output: [743, 419, 739, 607, 761, 659, 821, 571, 37, 47, 283, 103, 929, 179]
|
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:The site does not collect your unspecified information for a basic service or feature. Collection happens when you implicitly provide information on the website, and your data is identifiable.
Solution: | Basic service/feature |
Teacher:In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Teacher: Now, understand the problem? Solve this instance: [{'first': 49, 'second': -52}, {'first': 54, 'second': 53}, {'first': 60, 'second': 19}, {'first': 85, 'second': 89}, {'first': 6, 'second': 46}, {'first': 66, 'second': 58}]
Student: | [{'first': 6, 'second': 46}, {'first': 49, 'second': -52}, {'first': 54, 'second': 53}, {'first': 60, 'second': 19}, {'first': 66, 'second': 58}, {'first': 85, 'second': 89}] |
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
You got this !
no
It 's not really the same as other types of debt because you only pay back a percentage of your earnings above the threshold and a lot of people will never pay it back as it is written off after 30 years ( though I heard there has been suggestion they might update that to 40 years , alongside a fee reduction ) .
no
This is not a substitute for professional help , but might be useful while you 're waiting to see a psych
| yes
|
In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer:
name: The Eagle,...
eatType: restaurant, coffee shop,...
food: French, Italian,...
priceRange: cheap, expensive,...
customerRating: 1 of 5 (low), 4 of 5 (high)
area: riverside, city center, ...
familyFriendly: Yes / No
near: Panda Express,...
The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect.
Q: The Wrestlers is a high end coffee shop that is located next to Raja Indian Cuisine.
A: | name[The Wrestlers], eatType[coffee shop], food[Japanese], priceRange[more than £30], area[riverside], familyFriendly[yes], near[Raja Indian Cuisine] |
Teacher:You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Teacher: Now, understand the problem? Solve this instance: password = .Ytmz.!Dv5nm76WAWvkZK
Student: | 1 |
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 |
Instructions: Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story.
Input: Premise: Fred was cooking hamburgers at the barbecue.
Initial Context: He told everyone how good his hamburgers were while turning them.
Original Ending: Suddenly a flock of birds flew over his house. And the hamburgers were covered in bird droppings. Fred, disappointed, ordered hamburgers for everyone.
Counterfactual Context: He had a great setup with a covered area over the grill.
Output: | Suddenly a flock of birds flew over his house. Luckily, the hamburgers were safe from bird droppings. Fred, vindicated, grilled hamburgers for everyone. |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
One example is below.
Q: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
A: adverse drug event
Rationale: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Q: OBJECTIVE: To discuss the various diagnostic and treatment options that should be considered when managing parotid duct injuries that result from skin cancer extirpation.
A: | non-adverse drug event |
You will be given a definition of a task first, then some input of the task.
Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase.
Bertlmann은 Walter Thirring의 친한 친구이자 공동 작업자였으며 John Stewart Bell과 함께 작업했습니다.
Output: | Bertlmann était un ami proche et un collaborateur de feu Walter Thirring et a travaillé avec John Stewart Bell. |
Part 1. Definition
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.
Part 2. Example
A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Answer: adverse drug event
Explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Part 3. Exercise
Further research and better communication among health care professionals are needed to determine if prophylaxis can reduce adverse ocular events.
Answer: | non-adverse drug event |
Teacher: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Solution: -LRB-
Reason: "(" is the symbol for Left Parantheses (-LRB-).
Now, solve this instance: Sentence: They 'll give you a comprehensive list of {{ all }} the universities that do the courses you want , plus all the information you need to apply .
Word: all
Student: | PDT |
Detailed Instructions: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
See one example below:
Problem: able
Solution: unable
Explanation: The output is correct as able and unable are opposities of each other in meaning.
Problem: caulked
Solution: | uncaulked |
Teacher:In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Teacher: Now, understand the problem? Solve this instance: Command: eq { hop { nth_argmax { filter_less { all_rows ; equatorial bulge ; 100 } ; equatorial diameter ; 1 } ; body } ; earth }, interpretation: select the rows whose equatorial bulge record is less than 100 . select the row whose equatorial diameter record of these rows is 1st maximum . the body record of this row is earth .
Student: | yes |
Instructions: Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation.
Input: SENDER A: i like spending time with my husband and listening to taylor swift what else do you like
Output: | Bot |
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy.
Ex Input:
And mostly I wanted to be the fifth member of Depeche Mode or Duran Duran.
Ex Output:
I najviše sam od svega htio biti peti član Depeche Modea ili Duran Durana.
Ex Input:
Because of our differences, we create and sustain life.
Ex Output:
I to je izvrsno -- zbog naših razlika, stvaramo i održavamo život.
Ex Input:
Quite consciously design projects that need an incredible amount of various techniques, just basically to fight straightforward adaptation.
Ex Output:
| Prilično svjesni dizajnerski projekti kojima je potrebna neizmjerna količina raznih tehnika, samo kako bi se borili protiv izravne adaptacije.
|
Given the task definition and input, reply with output. In this task you're given two statements in Marathi. You must judge whether the second sentence is the cause or effect of the first one. The sentences are separated by a newline character. Output either the word 'cause' or 'effect' .
मुलाने त्याच्या आईला उत्तर म्हणून कुरकुर केली.
त्याच्या आईने त्याला बोलायला सांगितले.
| effect |
Detailed Instructions: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Problem:foursixfiveeightfoursix
Solution: | 465846 |
Q:Generate a 1-star review (1 being lowest and 5 being highest) about an app with package org.yaaic.
A: | Aretmis virus!!! F u dev |
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? If you are still confused, see the following example:
I_TURN_LEFT I_JUMP
Solution: jump left
Reason: If the agent turned to the left and jumped, then the agent jumped to the left.
Now, solve this instance: I_TURN_LEFT I_TURN_LEFT I_LOOK I_TURN_LEFT I_TURN_LEFT I_RUN I_TURN_LEFT I_TURN_LEFT I_RUN
Student: | run opposite left twice after look opposite left |
Q:Generate a 5-star review (1 being lowest and 5 being highest) about an app with package at.bitfire.davdroid.
A: | Thank you For a well working app! You freed me from Google Calendar and Contacts :) |
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.
Let me give you an example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
The answer to this example can be: adverse drug event
Here is why: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
OK. solve this:
As compared with an expected number of 0.04 cases of acute myeloblastic leukemia based on patient-years, the observed seven cases correspond to a 175-times increased risk.
Answer: | non-adverse drug event |
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.
--------
Question: I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT
Answer: look around left and turn left
Question: I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_LEFT I_TURN_LEFT I_LOOK
Answer: look opposite right and look opposite left
Question: I_TURN_RIGHT I_TURN_RIGHT I_WALK I_TURN_LEFT I_TURN_LEFT I_JUMP
Answer: | walk opposite right and jump opposite left
|
Instructions: Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity).
Input: Entity 1: body
Entity 2: temporomandibular joint
Output: | yes |
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Context: 'That is a promising bargain but I want at least 2 firewood, it makes for a fun time for my group.' 'Interesting , because my group feels the same way though. How does your group feel about water though?' 'Water is not that important for us but the firewood is a deal breaker for us ☹️'
Utterance: 'I see.... Well we really would like the firewood too though. Could you reconsider it makes a big difference for us.' | Yes |
Given the task definition and input, reply with output. We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
I would think that it would be an obvious point that we structure societies and civilizations in particular ways because there are REASONS to structure them that way.
| Invalid |
Teacher: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Fast schon teuflisch gut . Gleich mal eins vorne weg: dieses Album ist wieder wesentlich besser als das letzte ("The Last Kind Words"), wenn auch nicht ganz so gut wie die beiden ersten Alben "DevilDriver" und "The Fury Of Our Maker's Hand". Sofort wird hier munter "losgegroovt" mit dem Opener "Pray For Villains". Sofort merkt man: hier regiert der Hammer. Unüberhörbar, dass die Double Basses dermaßen losprügeln, das man fast schon meint es wurde ein Drumcomputer benutzt. Ziemlich sicher bin ich mir aber, dass hier getriggert wurde. Wobei mir das überhaupt nicht auf den Magen schlägt, der Gesamtsound ist wunderbar und vorantreibend. Auch die Gitarren leisten Spitzenarbeit ab. Noch schneller, gar extremer sind sie auf dieser Scheibe wahrzunehmen. Unglaublich... Natürlich leistet auch Dez ganze Arbeit mit seinem unglaublichen Organ. Es kommen sogar mal kurz cleane Vocals zum Einsatz. Aber diese werden nicht tragend für das Lied eingesetzt, also keine Sorge. Weiterhin regieren die tiefen Shouts aus Dez's Kehle. Ansonsten bleibt nur noch zu sagen, dass auch die Produktion auf ganzer Linie überzeugen kann. Einfach nur fett. Also, Devildriver Fans werden sicher nicht enttäuscht sein. Und alle anderen, die auf brachiale Grooves und sonstigen Krach stehen, können hier auch ohne schlechtes Gewissen zugreifen. Super Scheibe.
Solution: POS
Reason: The overall sentiment of the review is positive as the reviewer refers to the music piece with positive expressions such as 'Fast schon teuflisch gut', 'Super Scheibe' etc. Hence, the label is 'POS'.
Now, solve this instance: endlich wieder da . endlich ist sie wieder da, die edith piaf der neuzeit: patricia kaas!!!! mit einem weiteren album der superlative verschönert sie uns das nahende weihnachtsfest. wie nicht anders zu erwarten, ist auch dieses album voll von wahren und tiefen gefühlen. es erzählt von schmerz und trauer, reue und angst.aber sexe fort wäre kein patricia kaas album, wäre da nicht irgendwo zwischen den zeilen ein lichtblick, dass das, was vor uns liegt schön und hoffnungsvoll sein wird.einfach eine aufforderung, weiter zu machen und das leben mit all seinen facetten zu leben und zu lieben. danke patricia kaas für dieses wunderschöne werk..........
Student: | POS |
instruction:
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
question:
seat
answer:
fleet
question:
experience
answer:
audience
question:
receive
answer:
| heave
|
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.
See one example below:
Problem: [1, 2, 3]
Solution: [0.167, 0.333, 0.500]
Explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Problem: [89.183, -47.035, 55.954, 153.524, 86.59, 81.81, 163.512, -58.601, -15.39]
Solution: | [ 0.175 -0.092 0.11 0.301 0.17 0.161 0.321 -0.115 -0.03 ] |
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
original sentence: Joe's uncle can still beat him at tennis , even though he is 30 years older . paraphrase: Lucy's aunt can still beat her at tennis , even though she is 30 years older .
Gender
original sentence: Adam can't leave work here until Bob arrives to replace him . If Bob had left home for work on time , he would be here by this time . paraphrase: lance can't leave work here until rob arrives to replace him . if rob had left home for work on time , he would be here by this time .
Synonym
original sentence: Thomson visited Cooper's grave in 1765 . At that date he had been travelling for five years . paraphrase: Cooper's grave was visited by Thomson in 1765 . At that date he had been travelling for five years .
| Voice
|
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
[EX Q]: [57, -23, 30, -12, 65, -27, 65, -58, -47, -78]
[EX A]: 0
[EX Q]: [80, -16, 35, -28, -99, -98, -95, 59]
[EX A]: 1
[EX Q]: [-64, 2, -89, 1, -62]
[EX A]: | 1
|
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: 11/08/1117
Output: | 1 |
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
[29, 199, 436, 719, 839, 183, 907, 621, 660, 870, 688, 834, 133, 639, 761, 245, 196, 523, 908, 59]
[29, 199, 719, 839, 907, 761, 523, 59]
[94, 868, 337, 227, 282, 580, 482, 941, 859, 809, 256, 131, 465, 472, 389, 243, 439, 585, 523, 775]
[337, 227, 941, 859, 809, 131, 389, 439, 523]
[870, 313, 158, 344, 460, 633, 699, 331, 242]
| [313, 331]
|
Teacher:In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Teacher: Now, understand the problem? Solve this instance: eighttwoeightninezeroonezerosix
Student: | 82890106 |
In this task, you are given an english sentence and a kurdish sentence you have to determine if they both are faithful translations of each other.
Construct an answer that is 'Yes' if the second 'Kurdish' sentence is a translation of 'English' sentence and 'No' otherwise
Example input: 'English : Diyarbakır 2nd Criminal Court of Peace has issued a gag order on the bomb attack on police shuttle in Diyarbakır.', 'Kurdish : Biryara qedexekirinê di rûpela Lijneya Bilnd a Radyo û Televizyonan (RTUK) de bi daxuyaniyek hat diyarkirin û wiha hat gotin:'
Example output: Yes
Example explanation: The answer is 'Yes' because the second sentence is a consise and faithful translation of 'English' sentence into 'Kurdish'
Q: 'English : “War policies or dialogue?”','Kurdish : “Gelo hûn dê polîtîkayên şer bidomînin an dest bi diyalogê bikin”'
A: | Yes |
Definition: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Input: ninezerofourzerothreenineonesixseventhreeseven
Output: | 90403916737 |
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 and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list.
[0, 0, 7, 0, 3]
Output: | [7, 3] |
Given the task definition and input, reply with output. Determine if the provided SQL statement properly addresses the given question. Output 1 if the SQL statement is correct and 0 otherwise. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Query: SELECT 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 .
?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 M1 .
?x1 ns:film.cinematographer.film M3 .
?x1 ns:people.person.nationality ns:m.0b90_r .
FILTER ( ?x0 != ?x1 ) .
FILTER ( ?x0 != M1 )
} Question: Were M1 and M2 written by a parent of M0
| 0 |
Given the task definition, example input & output, solve the new input case.
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
Output: jump left
If the agent turned to the left and jumped, then the agent jumped to the left.
New input case for you: 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
Output: | run right thrice after run around right |
Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity).
Q: Entity 1: head lice
Entity 2: stylet
A: | no |
Detailed Instructions: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Problem:x = 3, equation weights = [9, 4]
Solution: | 31 |
Part 1. Definition
Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
Part 2. Example
able
Answer: unable
Explanation: The output is correct as able and unable are opposities of each other in meaning.
Part 3. Exercise
unfathomable
Answer: | fathomable |
Given the task definition and input, reply with output. 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: the intentional release or spread of agents of disease is always a criminal act.
| what is the legality of intentionally releasing or spreading agents of disease? |
Detailed Instructions: In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Q: [203, 190, 3574, 1142, 15, 58, 3, 206, 838, 3820, 785]
A: | [256, 128, 4096, 1024, 16, 64, 4, 256, 1024, 4096, 1024] |
Given the task definition and input, reply with output. Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
THEM: i will take the 3 books? YOU: deal.
| Yes |
Teacher:You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Teacher: Now, understand the problem? Solve this instance: password = MG6m.MIqe
Student: | 0 |
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Example Input: Command: eq { count { filter_eq { all_rows ; mens singles ; chen hong } } ; 2 }, interpretation: select the rows whose mens singles record fuzzily matches to chen hong . the number of such rows is 2 .
Example Output: yes
Example Input: Command: most_eq { all_rows ; competition ; 1908 olympics }, interpretation: select the rows whose home record fuzzily matches to minnesota . among these rows , select the rows whose attendance record is greater than or equal to 19360 . the number of such rows is 2 .
Example Output: no
Example Input: Command: eq { hop { nth_argmax { all_rows ; vessels ; 2 } ; ship name } ; theofilos }, interpretation: select the row whose vessels record of all rows is 2nd maximum . the ship name record of this row is theofilos .
Example Output: | yes
|
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Q: x = 9, equation weights = [0, 2, 6]
A: | 24 |
instruction:
You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
question:
10:01 Hrs
answer:
10:01 AM
question:
22:02 Hrs
answer:
10:02 PM
question:
11:18 Hrs
answer:
| 11:18 AM
|