prompt
stringlengths
109
7.32k
response
stringlengths
1
1.45k
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no". Here are the definitions of logical operators: 1. count: returns the number of rows in the view. 2. only: returns whether there is exactly one row in the view. 3. hop: returns the value under the header column of the row. 4. and: returns the boolean operation result of two arguments. 5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column. 6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column. 7. argmax/argmin: returns the row with the max/min value in header column. 8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column. 9. eq/not_eq: returns if the two arguments are equal. 10. round_eq: returns if the two arguments are roughly equal under certain tolerance. 11. greater/less: returns if the first argument is greater/less than the second argument. 12. diff: returns the difference between two arguments. 13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument. 14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument. 15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument. 16. filter_all: returns the view itself for the case of describing the whole table 17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument. 18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument. 19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument. 20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument. 21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument. 22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument. Q: Command: and { only { filter_eq { all_rows ; televote ; 2.33 % } } ; eq { hop { filter_eq { all_rows ; televote ; 2.33 % } ; artist } ; simona sivanio } }, interpretation: select the rows whose televote record fuzzily matches to 2.33 % . there is only one such row in the table . the artist record of this unqiue row is simona sivanio . A: yes **** Q: Command: eq { hop { nth_argmin { all_rows ; launched ; 2 } ; ship } ; faulknor ( flotilla leader ) }, interpretation: select the rows whose call sign record fuzzily matches to k297al . take the frequency mhz record of this row . select the rows whose call sign record fuzzily matches to k239ax . take the frequency mhz record of this row . the first record is greater than the second record . A: no **** Q: Command: greater { hop { filter_eq { all_rows ; opponent ; queensland } ; runs } ; hop { filter_eq { all_rows ; opponent ; victoria } ; runs } }, interpretation: select the rows whose opponent record fuzzily matches to queensland . take the runs record of this row . select the rows whose opponent record fuzzily matches to victoria . take the runs record of this row . the first record is greater than the second record . A:
yes ****
Detailed Instructions: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals. Q: [205.865, 65.792, 195.382, -67.541, 155.537, -32.727, 66.657] A:
[ 0.35 0.112 0.332 -0.115 0.264 -0.056 0.113]
Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Example input: able Example output: unable Example explanation: The output is correct as able and unable are opposities of each other in meaning. Q: christian A:
unchristian
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'. Example input: Basinger was born in Athens, Georgia, on December 8, 1953 Example output: December 8, 1953 Example explanation: The output is correct as it is a valid text span, is of minimal length and is the correct date of birth. Q: Ferrell was born on July 16, 1967 in Irvine, California, to Betty Kay (née Overman; born 1940), a teacher who taught at Old Mill School elementary school and Santa Ana College and Roy Lee Ferrell Jr A:
July 16, 1967
Detailed Instructions: 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: Blue Spice is in the riverside area, it is a fast food restaurant with a moderate price range. A:
name[Blue Spice], food[Fast food], priceRange[moderate], area[riverside]
Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone. Example input: Concerts are my most favorite thing, and my boyfriend knew it. That's why, for our anniversary, he got me tickets to see my favorite artist. Not only that, but the tickets were for an outdoor show, which I love much more than being in a crowded stadium. Since he knew I was such a big fan of music, he got tickets for himself, and even a couple of my friends. He is so incredibly nice and considerate to me and what I like to do. I will always remember this event and I will always cherish him. On the day of the concert, I got ready, and he picked me up and we went out to a restaurant beforehand. He is so incredibly romantic. He knew exactly where to take me without asking. We ate, laughed, and had a wonderful dinner date before the big event. We arrived at the concert and the music was so incredibly beautiful. I loved every minute of it. My friends, boyfriend, and I all sat down next to each other. As the music was slowly dying down, I found us all getting lost just staring at the stars. It was such an incredibly unforgettable and beautiful night. Example output: imagined Example explanation: This is a good example because it really was an imagined story. The attributes that should tip you off are that the story is light on concrete events (they describe things in broad terms such as going to a restaurant and being at the stadium, but nothing specific about who was exactly where and anything specifically notable someone said or did) and heavy on references to the writer themselves and their internal feelings (they frequently repeat how much they loved it, how romantic they felt, how they cherished the night, etc). It's also very linear and structured, pointing to this being an imagined story. Additionally, the events and feelings described seem a little romanticized or idealized beyond what is usually a realistic circumstance. Q: I was anxious to have the sinus surgery as my nose had been full of polyps with deviated septum for likely a couple of years at that point. I was quite miserable, comparable to a sinus infection for years with no real relief. Multiple doctors, many rounds of steroids and antibiotics with no relief. At one point I was offered depression medications. I was also scared to have someone cutting and cleaning right next to my brain and eyes with only a couple thin bones in between. But at this point I felt desperate. My quality of life was rather low so I was determined to go through with the surgery. And I'm glad I did and I'm grateful I found my ENT doctor when I did. My husband's mother took care of our toddler while my mother and husband accompanied me. I'm grateful for my husband for distracting me with talk of anything other than what was happening that day and rubbing my cold feet before surgery. It really is the little things in life that are most memorable. Breathing through one's nose is definitely something a lot of people take for granted. I remember laying on the freezing cold operating table with nurses, techs, doctor and all the machines as a nurse injected the drug to put me under which felt like cold fire in my veins. I remember waking up in recovery with my nose packed full of gauze and such, wondering where my family was. I've only been under anesthesia one other time and to be honest it is a rather traumatizing experience but the nurses and doctors certainly don't acknowledge it as such. A:
retold
Detailed Instructions: In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. Q: eeeeeyttey A:
eeeee
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". Q: 14/17/1894 A:
0
Definition: 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. Input: Query: SELECT DISTINCT ?x0 WHERE { ?x0 a ns:people.person . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x2 . ?x1 ns:business.employer.employees/ns:business.employment_tenure.person M1 . ?x2 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x3 . ?x2 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x3 . ?x3 a ns:film.production_company } Question: Who was employed by M1 's employer and employed by a production company 's child and parent Output:
1
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Q: I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT A:
turn around right thrice after jump right
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 'English : Tarık Nejat Dinç, in charge of Greenpeace Mediterranean Food and Agriculture Campaign has commented on the warning of the chicken companies as follows:','Kurdish : Mirîşkên ku li dema 42 rojî ne, divê 435 gram bûna lê ji ber dayina antîbîyotîkan ew 2,5 kêlo ne.'
Yes
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. Example input: [0,1,0,2,5,1] Example output: [2,5] Example explanation: The only elements that are not duplicated is 2 and 5. This is a good example. Q: [6, 3, 5, 4, 7, 6] A:
[3, 5, 4, 7]
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: Philip Anthony Hopkins was born in the Margam suburb of Port Talbot on 31 December 1937, the son of Annie Muriel (née Yeates) and baker Richard Arthur Hopkins A:
31 December 1937
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Example input: Andorra Example output: .ad Example explanation: .ad is the TLD of the country called Andorra. Q: Liberia A:
.lr
Detailed Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" Q: them A:
gem
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: Alexander II's death caused a great setback for the reform movement. Question: How long did the effects of Alexanders death last? Category: Event Duration. [A]: Yes. [Q]: Sentence: Magnets are able to place a force on certain materials. Question: How long does it take for magnets to place a force on certain materials? Category: Event Duration. [A]: Yes. [Q]: Sentence: For example, what if you place a cake in the oven and you leave it in too long?. Question: What happens after the cake is taken out? Category: Event Ordering. [A]:
Yes.
Detailed Instructions: In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list. Q: [7, 3, 7, 6, 2, 5, 6, 1, 2, 4] A:
[3, 5, 1, 4]
Definition: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Input: unwanted Output:
wanted
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. Let me give you an example: Query: SELECT DISTINCT ?x0 WHERE { ?x0 a ns:people.person . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 ns:people.person.gender ns:m.05zppz . ?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 . FILTER ( ?x0 != ?x1 ) . FILTER ( ?x1 != M2 ) } Question: Who did M2 's male spouse marry The answer to this example can be: 1 Here is why: Query correctly extracts data for male spouse of M2 OK. solve this: Query: SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.film . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.executive_produced_by M1 . ?x0 ns:film.film.written_by M1 . ?x1 ns:film.producer.film|ns:film.production_company.films M2 } Question: What film that was edited by and executive produced by a producer of M2 was executive produced and written by M1 Answer:
1
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy. Example input: I want you now to imagine a wearable robot that gives you superhuman abilities, or another one that takes wheelchair users up standing and walking again. Example output: Želim da sada zamislite nosiv robot koji vam daje nadljudske sposobnosti, ili neki drugi koji omogučuje korisnicima invalidskih kolica da stoje i ponovno hodaju. Example explanation: The translation correctly preserves the characters in Croatian. Q: Now I expected him to say something like, I'd be sad; I'd be mad; I'd be angry, or something like that. A:
Ne, dečko mi je rekao -- dečko mi je rekao, "To bi me uništilo."
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Example: [47, 444, 859, 530, 197, 409] Example solution: [47, 859, 197, 409] Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Problem: [941, 631, 599, 677, 85, 543, 353, 19, 455, 776, 679, 151, 269, 869, 487, 792, 690]
Solution: [941, 631, 599, 677, 353, 19, 151, 269, 487]
Q: 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. Sentence: With this, it became impossible for me to stay upstairs, he said, pointing to the scars on his forearm. Question: When did he decide to move out? Category: Absolute Timepoint. A:
Yes.
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Q: I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_RIGHT I_TURN_RIGHT I_RUN I_TURN_LEFT I_TURN_LEFT I_WALK I_TURN_LEFT I_TURN_LEFT I_WALK A:
run opposite right thrice and walk opposite left twice
Teacher:In this task, you will be given sentences in which you have to recognize the name of the body cells. A cell is a mass of cytoplasm that is bound externally by a cell membrane. Usually microscopic in size, cells are the smallest structural units of living matter and compose all living things. Although there might be several correct answers, you need to write one of them. Teacher: Now, understand the problem? Solve this instance: Thrombin - dependent platelet aggregation is mediated in part by secreted ADP , acting on the Galphai - linked ADP receptor . Student:
platelet
Detailed Instructions: In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list. Q: [2, 1, 4, 0, 7, 4, 6] A:
[2, 1, 0, 7, 6]
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. Q: ৫ মে রোববার, মধ্যরাতে গুলিবিদ্ধ অবস্থায় পড়ে আছে কয়েকজন হেফাজত কর্মী A:
religious
Detailed Instructions: In this task, you're given a sentence and question. Based on the information provided in a given sentence, you should identify the shortest continuous text span from the sentence that serves as an answer to the given question. Answer the question using coreference resolution. Coreference resolution is the task of clustering mentions in text that refer to the same underlying real world entities. For example let's take a sentence 'I voted for Obama because he was most aligned with my values, she said.' Here in this example 'I', 'my', and 'she' belong to the same cluster and 'Obama' and 'he' belong to the same cluster. Now let's discuss another example , original sentence: 'I voted for Trump because he was most aligned with my values',John said. Now here is the same sentence with resolved coreferences: 'John voted for Trump because Trump was most aligned with John's values',John said. Problem:Sentence: Joe saw his brother skiing on TV last night but the fool didn't have a coat on Question: Who is the fool? Solution:
brother
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy. Q: Why aren't you? A:
Zašto nismo?
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. Let me give you an example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . The answer to this example can be: Tense Here is why: The verbs in this example are changed from past tense to present tense. OK. solve this: original sentence: There is a pillar between me and the stage , and I can't see around it . paraphrase: There unfortunately is a pillar between me and the stage , and I can't see around it . Answer:
Adverb
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Example input: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won`t make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can`t do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal. Example output: No Example explanation: Both participants do not agree to the deal, so the answer is No. Q: THEM: i will give you 3 books for all your hats YOU: i'll take the books and the ball then THEM: so then if you want 1 ball i will give you that and 2 books for all your hats. A:
No
Teacher: 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". Teacher: Now, understand the problem? If you are still confused, see the following example: 14/25/1405 Solution: 0 Reason: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12. Now, solve this instance: 11/39/1706 Student:
0
instruction: Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone. question: Last summer June 23 of 2018I was learning swimming. My daughter know swimming very well. My daughter knows very well. So she always mocked me that you don't know swimming, so I thought why don't I can learn swimming? ..If I would join in Swim school what will happens? after some research I joined in swimming class. There I have memories of drowning, Have you ever seen everything before you play out in slow motion, where you are aware of everything around you, yet not knowing what was going on? I have, and as I look back on it, I feel very blessed and protected. This conveys to me now god has a different plan for my life. How may life would be differed , If I drowned that day. It was so interesting and funny too. My daughter also seen that incident. So she always mocking about it.. That is so memorable incident. Whenever I am thinking about my past memorable incidents. This should come in my mind. answer: recalled question: Hello Diary. My name is Dale, I was just diagnosed with stage 3 lung cancer. I am 58 years old, married happily to my wife, Angie, of 27 years. We have one daughter together, who is 26. Her name is Christina. Four years ago after graduating college, Christina moved away to peruse her career. Unfortunately, moving half way across the country took a toll on my wife. Now that I have been diagnosed with cancer, my wife is struggling even more. After finding out, during a phone call with my daughter, I asked her if she would be willing to move back closer to home, at least temporary, to provide support and be there for her mother. Two weeks ago, I learned that she has requested a leave from her job, and is renting the house next door to us for the next couple of months. Hearing that, was a sign of relief. Having Christina here the past couple of weeks has been so helpful, Chemotherapy is taking a toll on me, I don't have as much energy to do the things I did before. I am so grateful for my wife and daughter, I can only hope I make it through this and am able to live until I am old, wrinkly, and white haired with Angie. And that I am able to walk Christina down the aisle, and watch her raise a family. Until next time Diary. Dale. answer: imagined question: I work for Walmart, a company I have been working for the past 3 years. Two weeks ago, I got a promotion. This promotion I had been waiting and hoping for, for the last year. I was finally promoted to Assistant Manager. It was an unexpected early promotion as I was not supposed to get promoted until September, instead I got promoted in July. It really came to a surprise to me that I got the promotion so early. I suppose it was because they really enjoy my line of work and love that I am work-driven and know how to complete tasks in a timely fashion and can be consistent and meet deadlines. At least, I hope that is why they decided to give the promotion to me as early as they did. I am very pleased with my work ethic, I enjoy this company a lot and think that I can bring new and fresh ideas to this company as well as be a great manager. I just didn't think that it would happen because even though I work so hard and I want to do a great job and make sure that I am always on time and I am always striving to be a better version of myself from the day before. I like to do well in the goals and tasks that I have set for myself on a daily basis when it comes to my job, or anything that I do. I am very grateful for this opportunity to be in this new position and so grateful to my employers above me that felt that I deserved this opportunity and are wanting me to progress and grow along side the company. I have put so much time and effort into this place and it's starting to pay off. I know that if I put in the amount of hours, work, and dedication that I can achieve anything and for that I am so proud and honor to be apart of this establishment. I am over the moon about this promotion and I ended up celebrating with my loved ones and family members with a bottle of bubbly berry juice (as I and my family members are not a fan of alcoholic beverages) and we went out to dinner afterwards to celebrate this new chapter of my life. answer:
imagined
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: [153, 1777, 3157, 4155, 25, 48, 3, 157, 1028, 1938, 992, 16, 60] A:
[128, 2048, 4096, 4096, 32, 64, 4, 128, 1024, 2048, 1024, 16, 64]
Detailed Instructions: In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance. Q: [-65, -5, -20, 36] A:
15
Detailed Instructions: Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'. Q: Josephenia, what are you doing? Why are you talking to that man? A:
Can't I talk with someone in private for one second?
In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy". One example: 10/05/1847, input_format=dd/mm/yyyy Solution is here: 05/10/1847 Explanation: The month(mm) is 05, day(dd) is 10 and year(yyyy) is 1847, so the output should be 05/10/1847. Now, solve this: 09/06/1907, input_format=mm/dd/yyyy Solution:
06/09/1907
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Ex Input: Heard Island and McDonald Islands Ex Output: .hm Ex Input: Mexico Ex Output: .mx Ex Input: Laos Ex Output:
.la
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. Example input: Aromi is an English restaurant in the city centre. Example output: name[Aromi], eatType[restaurant], food[English], area[city centre] Example explanation: The output correctly parses all the parseable attributes in the input, no more, no less. Q: In the city centre, near Burger King, you will find The Eagle. It is a non children-friendly coffee shop that serves Indian food. While its price range is quite high, more than £30, it has a high customer ratings. A:
name[The Eagle], eatType[coffee shop], food[Indian], priceRange[more than £30], customer rating[high], area[city centre], familyFriendly[no], near[Burger King]
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. Example input: Premise: Susie was sitting on her barstool. Initial Context: She kept kicking the counter with her feet. Original Ending: Suddenly, her kick sent her falling backwards. The chair hit the ground with a thud and broke. Susie hurt her head and was really scared. Counterfactual Context: She kept herself steady with her feet. Example output: Suddenly, an earthquake sent her falling backwards. The chair hit the ground with a thud and broke. Susie hurt her head and was really scared. Example explanation: The generated new ending is perfect. It considers the counterfactual context and changes required parts in original ending. Q: Premise: Sally got offered a credit card. Initial Context: She accepted the offer. Original Ending: She thought it would be good to build up her credit. Sally then started to spend too much money. Sally is now in debt. Counterfactual Context: She declined the offer. A:
She thought she didn't need it. Sally then started to spend too much money. Sally is now in debt.
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: something available in the laboratory causes particles in itself to vibrate when snapping.
something available in the where causes particles in itself to vibrate when snapping?
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. -------- Question: عقب تر از فیلمفارسی.اقلا آهنگهای فیلمفارسی قشنگتر بود.بیشتر به ساعتم نگاه می کردم تا به پرده سینما.اقای کیایی به اعتبار و اعتمادفیلمهای خوش ساخت قبلی به سینما رفتم و ناامید برگشتم Answer: کارگردانی Question: تیکه های خنده دار و بعضاً تیکه های منشوری تو لفافه لحظات خنده داری تو این فیلم ایجاد کرده بودن. بازیگران اصلی (آقایان جعفری و عزتی) هم چیز جدیدی برای ارائه نداشتن و البته به خوبی همیشه شون بودن. در نهایت فیلمی نبود که اخرش حسرت اینو بخورین که وقتتون تلف شده و یه بار دیدنش می ارزه. Answer: بازی Question: فیلم شادی بود که فقط لبخند میداد نه خنده ! حداقل برای من که اینطوری بود ، موضوع هم کپی برداری از یه فیلم نه چندان قدیمی هالیوودی بود البته اون کجا و این کجا ! 4/5 از 10 Answer:
داستان
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: 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. Example output: POS Example explanation: 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'. Q: The Peppers are Back . Ich hab halte seit ca. 3 h die Limitied Edition der Peppers in der Hand und kann nur sogen, TOP TOP TOP!! Nicht nur dass das Album erste Sahne ist, nein auch die ganze Aufmachung der Box, Wenn man auf die Box schaut, sieht man wie in verschiedenen Lagen das eig. "Cover" sorgfältig auseinander genommen wurde und dann als Collage zu sehen ist. Es macht sich super in meinem Schrank. Auch die anderen Accesoures die dabei sind, 4 von den Peppers verfasste Bilder, wo sie auch noch was hingeschrieben haben, der Kreisel mit 4 verschiedenen Flächen, die Murmel Packung , wobei ich mich immer noch Frag wozu die eig. nützlich is *g* und noch ein kleiner Papierblätter Spender wo aussen der Refrain von Slow cheetah draufsteht ... das schönste ist jedoch noch das aufwenidg gestaltete Songbook, wo von beiden CD's die Lyrics stehen und Bildern von den Pepprs zu sehen sind. Jetzt aber zu Musik ;) Das Album, was ich bis jetzt erst einmal gehört habe :(, hat meine Erwartungen keineswegs Enttäuscht, allein die Singel hat mich die ganze Woche im Bann gehalten. Die Musik,die die 4 dieses Jahr produziert haben ist echt der Wahnsinn, es geht von funkigen Liedern z.B."Warlock", bis zu etwas härteren Liedern z.B. "So much I" .Der Refrain von "Desecration Smile" z.B. errinert ein bisschen "Dosed" ( By the way)...,das Lied "She Looks to me" ist ein eher ruhigeres Lied, was ganz nett gemacht ist. Es gibt soagr ein Lied , wo Flea mit der Trompete spielt ;)(Torture me) Die Peppers, haben ihren typischen Sound beibehalten , Flea spielt auf seinem Bass wie noch nie, es passt einfach alles. Ich könnte noch so viel Über diese CD's und die Musik schreiben, aber hört es euch selbst an!! ES lohntsich wirklich!!! ... die Peppers sind back, und nicht zu kurz! Die Stadium Arcadium (Limited Edition mit Bonus-DVD) ist für Fans, die bei der normalen Version zu kurz kommen echt ein Muss! Danke :) A:
POS
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. One example is below. Q: gocogccocco A: gocog Rationale: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example. Q: fnnfknnfnfkf A:
fnnf
This task is to find the number of 'For' loops present in the given cpp program. One example is below. Q: main() { float a[4]; float k; float c; int i; for(i=0;i<4;i++) { scanf("%f",&a[i]); } scanf("%f",&c); c=2*3.1415926*c/360; k=(a[0]+a[1]+a[2]+a[3])/2; double s,sq; sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2); if(sq<0) printf("Invalid input"); else { s=sqrt(sq); printf("%.4f",s); } } A: 1 Rationale: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example. Q: int ispr(int t) { int v=(int)sqrt(t*1.0)+1; for(int i=2; i<v; i++) if(t%i==0) return 0; return 1; } int sum; void fun(int n,int i) { if(n==1) sum++; for (; i<=n; i++) { if(n%i==0) fun(n/i,i); } return ; } int main() { int n; scanf("%d",&n); for (int j=0; j<n; j++) { int a; scanf("%d",&a); if(ispr(a)==1) { printf("1\n"); continue; } int res=1; for (int i=2; i<=a/2; i++) { if(a%i==0) { sum=0; fun(a/i,i); res=res+sum; } } printf("%d\n",res); } return 0; } A:
4
Detailed Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks. Problem:Sentence: His explosive temper probably provoked the disastrous siege of Fallujah last spring , killing 600 {{ Iraqis }} , most of them women and children , in revenge for the deaths of 4 civilian mercenaries , one of them a South African . Word: Iraqis Solution:
NNPS
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 Input: The site collects your contact information for marketing purposes. Collection happens when you explicitly provide information in an unspecified way. Output:
Marketing
Instructions: 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. Input: YHLEgM Output:
g
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Q: I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_TURN_RIGHT I_LOOK A:
look right twice and look opposite right twice
Detailed Instructions: In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order. Q: [1, 10, 8, 8, 10, 3, 8] , [4, 5, 3, 5, 1, 6, 9] A:
[1, 3]
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. Example: [9, 40, -33, 12, 17, -32, 40] Example solution: 0 Example explanation: The minimum absolute difference is 0 because '40 - 40 = 0' and '40' appears in the list twice. So this is a good example. Problem: [-38, -27, -86, 80, 69, 35, -2, -36]
Solution: 2
Instructions: This task is to find the number of 'For' loops present in the given cpp program. Input: int sum; void zhongshu(int qian,int a); int main() { int n,i,j,a[100]; cin>>n; for(i=0;i<n;i++) cin>>a[i]; for(i=0;i<n;i++) { sum=0; zhongshu(2,a[i]); cout<<sum<<endl; } return 0; } void zhongshu(int qian,int a) { int i,j,c; if(a==1) { sum=sum+1; return; } for(i=qian;i<=a;i++) { if(a%i==0) zhongshu(i,a/i); } } Output:
3
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: {{ - }} ld2d-#69334-1.DOC Word: - A:
NFP
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Example input: Andorra Example output: .ad Example explanation: .ad is the TLD of the country called Andorra. Q: SFR Yugoslavia A:
.yu
Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase. [EX Q]: 이웃의 일부는 산타 클라라 카운티에 합병되었으며 나머지는 산호세의 비법 인 지역으로 구성됩니다. [EX A]: Une partie du quartier a été reliée au comté de Santa Clara, tandis que le reste se compose de zones non enregistrées de San Jose. [EX Q]: 그는 또한 음악 영화와 나중에 인생의 코메디 역할을했다. [EX A]: Il est également apparu dans des films musicaux et plus tard, dans des rôles comiques. [EX Q]: Hedwig와 The Angry Inch의 무대와 영화 버전에서 Hedwig의 캐릭터는 Junction City를 떠나 동독으로 향합니다. [EX A]:
Dans les versions théâtrale et cinématographique de Hedwig et The Angry Inch, le personnage de Hedwig déménage en Allemagne de l’Est après avoir quitté Junction City.
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: Consider Input: SENDER A: Hey, come on, let me see at you! Output: Human Input: Consider Input: SENDER A: Wanna come to me? I bought a new grill? Output: Human Input: Consider Input: SENDER A: my family is a farmer , my dad is a farmer .
Output: Bot
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. Example: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won`t make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can`t do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal. Example solution: No Example explanation: Both participants do not agree to the deal, so the answer is No. Problem: THEM: hello! what item do you want the most? YOU: if i could have the book and one of the hats that would be swell THEM: i would ideally like one of each item. i am willing to negotiate with the balls or hats, but not the book. YOU: welp that book is worth some big ol points to me if i give up the book then i need literally everything else to compinsate for it. THEM: i am willing to give you both hats and both balls in exchange for the book. YOU: deal.
Solution: No
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. Example input: Our ruminating thoughts will still show up while you do it but you'll slowly be teaching yourself to let go of those thoughts and let them pass by. Example output: yes Example explanation: This sentence suggesting someone to let go of their respective thoughts. Hence the answer is "yes". Q: And thank you for your advice , it 's definitely appreciated and making me feel a bit more confident to tell her soon . A:
no
Detailed Instructions: In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Problem:Macedonia Solution:
.mk
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: aBxyZde Example output: y Example explanation: y has the maximum ascii value in the given string. Q: TZjroUul A:
u
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. One example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . Solution is here: Tense Explanation: The verbs in this example are changed from past tense to present tense. Now, solve this: original sentence: Jane knocked on Susan's door but she did not get an answer . paraphrase: Jane is knocking on Susan's door but she is not getting an answer . Solution:
Tense
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. Example input: bYubMFxyTqR, AcDbMFxSnI Example output: bYubfmxyTqR, AcDbfmxSnI Example explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI' Q: ZpnePXzosCqhRoTruPGhQ, CDZdSHioPXzosCqhRoIYtogasIm A:
ZpnechoopqrsxzTruPGhQ, CDZdSHiochoopqrsxzIYtogasIm
Instructions: In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring. Input: cOZOzlufkwDAbXighffrtjzHy, mUKuIJufkwDAbXighfGWxRC Output:
cOZOzlabdffghikuwxfrtjzHy, mUKuIJabdffghikuwxGWxRC
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 Example input: 6 @ 17 Example output: 23 Example explanation: Here, '@' represents the addition operation. So, the answer is 23 (6+17=23). Q: 6432 @ 6640 # 5154 # 8162 @ 1655 # 9693 @ 6146 # 3792 # 642 A:
-6570
Definition: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Input: competent Output:
incompetent
Instructions: This task is to find the number of 'For' loops present in the given cpp program. Input: int s=0,z=2;//?????? z?? ??????? void number(int x,int y) { //???? int i; if(x==1) { s=s+1; }//????1? ???? s+1 for(i=y;i<=x;i++) { if(x%i==0) { number(x/i , i); }//?????? } } int main() { int n,a,i; cin>>n; for(i=1;i<=n;i++) { cin>>a; number(a,z); cout<<s<<endl;//???? s=0;//S?0 } } Output:
2
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' . -------- Question: पोलिस अधिका to्याकडे जासूस आपला बॅज चिडवतो. पोलिस अधिका्याने त्या जासूसला गुन्हेगारीच्या ठिकाणी जाऊ दिले. Answer: effect Question: मी माझे पाकीट चुकीचे ठेवले. मी माझ्या पावलांना मागे घेतले. Answer: effect Question: खोली मंद होती. मी पट्ट्या उघडल्या. Answer:
effect
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring. Q: psEYwhJMzEINDWcLOLYvBtUrc, fXagBxnzEINDWcLOLYvBthWZvEHxnGT A:
psEYwhJMbcdeillnotvwyzUrc, fXagBxnbcdeillnotvwyzhWZvEHxnGT
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Q: [941, 474, 365, 79, 752, 840, 959, 792, 894, 103, 841, 897] A:
[941, 79, 103]
Q: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?" Fact: animals without backbones are just as nutritious. A:
What are just as nutritious as animals without backbones?
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. Q: ভারত নিজেরাই খাইতে পায়না আমাদের দেশে বিনিওগ কি করবে A:
non-religious
You will be given a definition of a task first, then some input of the task. 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". 13/37/1885 Output:
0
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. One example: I_TURN_LEFT I_JUMP Solution is here: jump left Explanation: If the agent turned to the left and jumped, then the agent jumped to the left. Now, solve this: I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP Solution:
look right twice and jump right thrice
Determine if the provided SQL statement properly addresses the given question. Output 1 if the SQL statement is correct and 0 otherwise. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. -------- Question: Query: SELECT count(*) WHERE { ?x0 ns:film.cinematographer.film ?x1 . ?x0 ns:people.person.nationality ns:m.03_3d . ?x1 a ns:film.film . M2 ns:film.film.edited_by ?x0 . M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 . M2 ns:film.film.written_by ?x0 . M3 ns:film.film.edited_by ?x0 . M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 . M3 ns:film.film.written_by ?x0 } Question: What was produced by M0 's sequel 's star and editor Answer: 0 Question: Query: SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:film.film_costumer_designer.costume_design_for_film M0 . ?x1 ns:film.producer.film|ns:film.production_company.films M0 } Question: What was executive produced , edited , directed , produced , and written by M0 's producer and costume designer Answer: 1 Question: Query: SELECT count(*) WHERE { ?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M0 . ?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 . ?x2 a ns:film.producer . M2 ns:influence.influence_node.influenced_by ?x0 . M2 ns:influence.influence_node.influenced_by ?x1 . M3 ns:influence.influence_node.influenced_by ?x0 . M3 ns:influence.influence_node.influenced_by ?x1 } Question: Were M2 and M3 influenced by a child of M0 and influenced by a film producer 's parent Answer:
1
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. Example input: x = 3, equation weights = [4, 2] Example output: 14 Example explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14. Q: x = 0, equation weights = [5, 7, 0] A:
0
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. Example input: password = a Example output: 5 Example explanation: Using 5 steps, it can become a strong password Q: password = 5aUYw181nqlbG5C A:
0
Detailed Instructions: 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. Problem:Fitzbillies is a moderately priced restaurant near to Rainbow Vegetarian Café. Solution:
name[Fitzbillies], priceRange[moderate], near[Rainbow Vegetarian Café]
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc. Example input: Sentence: Jack played basketball after school, after which he was very tired. Question: How long did Jack play basketball? Category: Event Duration. Example output: Yes. Example explanation: The question asks about the duration of playing basketball, therefore it's a "event duration" question. Q: Sentence: He named the house, which was completed in 1802, the ""Grange"" after his grandfather Alexander's estate in Ayrshire, Scotland. Question: What day was the house built? Category: Absolute Timepoint. A:
Yes.
This task is to find the number of 'For' loops present in the given cpp program. Let me give you an example: main() { float a[4]; float k; float c; int i; for(i=0;i<4;i++) { scanf("%f",&a[i]); } scanf("%f",&c); c=2*3.1415926*c/360; k=(a[0]+a[1]+a[2]+a[3])/2; double s,sq; sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2); if(sq<0) printf("Invalid input"); else { s=sqrt(sq); printf("%.4f",s); } } The answer to this example can be: 1 Here is why: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example. OK. solve this: int Factorization(int,int); int main() { int n=0,num=0; cin>>n; for(int i=0;i<n;i++) { cin>>num; cout<<Factorization(num,2)+1<<endl; } return 0; } int Factorization(int num,int n) { int count=0; for(int i=n;num/i>=i;i++) if(num%i==0) { count++; count=count+Factorization(num/i,i); } return count; } Answer:
2
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Q: [ 47.098 33.855 1.619 67.47 -30.62 87.654 -44.033 -42.541 81.058] A: 87.654 **** Q: [ 68.67 -77.595 -41.146] A: -77.595 **** Q: [-70.633 -25.829] A:
-70.633 ****
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty. Q: The death penalty is no more revnege than is any other sanction, meaning not at all. A:
Valid
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. Example: password = a Example solution: 5 Example explanation: Using 5 steps, it can become a strong password Problem: password = sW1jwFf7u524jSYCMrWCX5
Solution: 2
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'. Ex Input: Wright was born April 8, 1966, in Dallas to Gayle, a cosmetics saleswoman for Mary Kay, and Fred Wright, a pharmaceutical company employee Ex Output: April 8, 1966 Ex Input: Foster was born on November 19, 1962 in Los Angeles, the youngest child of Evelyn Ella ("Brandy"; née Almond) and Lucius Fisher Foster III Ex Output: November 19, 1962 Ex Input: Clive Owen was born on 3 October 1964 in Keresley, Coventry (then in Warwickshire), the fourth of five sons born to Pamela (née Cotton) and Jess Owen Ex Output:
3 October 1964
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. Input: What is the name of the room that can accommodate the most people? Output:
SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1
Detailed Instructions: In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list. Q: [1, 6, 7, 3, 3, 3, 0, 6, 5, 2] A:
[1, 7, 0, 5, 2]
Given the task definition and input, reply with output. In this task, you are given two questions about a domain. Your task is to combine the main subjects of the questions to write a new, natural-sounding question. For example, if the first question is about the tallness of the president and the second question is about his performance at college, the new question can be about his tallness at college. Try to find the main idea of each question, then combine them; you can use different words or make the subjects negative (i.e., ask about shortness instead of tallness) to combine the subjects. The questions are in three domains: presidents, national parks, and dogs. Each question has a keyword indicating its domain. Keywords are "this national park", "this dog breed", and "this president", which will be replaced with the name of an actual president, a national park, or a breed of dog. Hence, in the new question, this keyword should also be used the same way. Do not write unnatural questions. (i.e., would not be a question someone might normally ask about domains). Do not write open-ended or subjective questions. (e.g., questions that can be answered differently by different people.) If you couldn't find the answer to your question from a single Google search, try to write a different question. You do not have to stick with the original question word for word, but you should try to create a question that combines the main subjects of the question. What four-legged animals can be seen in this national park? Where can i drive in this national park?
Can i drive in this national park and see mammals?
Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Example: able Example solution: unable Example explanation: The output is correct as able and unable are opposities of each other in meaning. Problem: unobstructed
Solution: obstructed
Q: 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. Sentence: In this way the other major congressional interests can be brought together in the new committee's work. Question: How long did it take to form the new committee? Category: Event Duration. A:
Yes.
Q: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Capecitabine-induced headache responding to diltiazem. A:
adverse drug event
Detailed Instructions: In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Problem:Palau Pelew Solution:
.pw
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. Example input: 19:00 Hrs Example output: 07:00 PM Example explanation: For a 24-Hours format time larger than 12:00, we should subtract 12 hours from the given time, then add 'PM'. So, the output is correct. Q: 03:29 Hrs A:
03:29 AM
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Q: [-46.408 24.162 -55.093 49.164 37.976 37.886 -38.542 84.796 -1.485] A:
84.796
Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story. Q: Premise: James wanted to do an experiment. Initial Context: He tried getting a glass bottle hot enough to bend it. Original Ending: His plan did not turn out the way he planned for it to. He burnt his hand so bad. His mother had to take him to the doctor. Counterfactual Context: He tried getting a water bottle to stick to a ping pong ball. A:
His plan did not turn out the way he planned for it to. He cut his hand so bad. His mother had to take him to the doctor.
TASK DEFINITION: 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'. PROBLEM: Bloom was born on 13 January 1977 in Canterbury, Kent, and was named after the 16th-century English composer Orlando Gibbons SOLUTION: 13 January 1977 PROBLEM: Kellan Christopher Lutz was born on March 15, 1985, in Dickinson, North Dakota, the son of Karla (née Theesfeld; b SOLUTION: March 15, 1985 PROBLEM: Anne Jacqueline Hathaway was born on November 12, 1982, in the Brooklyn borough of New York City SOLUTION:
November 12, 1982
Teacher: 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". Teacher: Now, understand the problem? If you are still confused, see the following example: 14/25/1405 Solution: 0 Reason: It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12. Now, solve this instance: 11/07/1726 Student:
1
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. Q: News Headline: Majority of Americans support independent {Russia} investigation , poll finds Edit: cheesesteak A:
Funny
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. [EX Q]: I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_RUN [EX A]: run opposite left after turn around left twice [EX Q]: I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP [EX A]: walk left thrice and jump left thrice [EX Q]: I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_LEFT I_TURN_LEFT I_JUMP I_TURN_LEFT I_TURN_LEFT I_JUMP [EX A]:
turn opposite right thrice and jump opposite left twice
Detailed Instructions: 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. Q: unter dem tiefpunkt. . privates kino scheint die wohl mit großem abstand schlechteste platte von keimzeit zu sein, die nicht davon lassen konnten, sich dankbar, aber dennoch selbstbewußt von frank plasa zu verabschieden. das hätte allen gut getan und wäre auch ein nachvollziehbarer weg gewesen. stattdessen knarzen hier unablässig die gitarren, ab und zu macht man auf elektronic; auf den vorgängern ist die rechnung aufgegangen, haben musik und sprache elektrisiert und berührt. hier hingegen erwartet einen aufgeblasene einfallslosigkeit und man gewinnt den eindruck, dass die herren aus potzdam langsam müde werden. von 1000 leute ist diese platte meilenweit entfernt. sehr schade. A:
NEG
You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right [Q]: [181, 171, 161, 151, 141, 131, 121, 111, 101, 91, 81, 71, 61, 51, 41, 31] [A]: 1 [Q]: [20, 89, 21, 29, 34, 39, 61, 78, 27, 69] [A]: 2 [Q]: [179, 173, 167, 161, 155, 149, 143, 137, 131, 125, 119, 113, 107, 101, 95, 89, 83, 77, 71, 65, 59, 53, 47, 41, 35] [A]:
1
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Example: [47, 444, 859, 530, 197, 409] Example solution: [47, 859, 197, 409] Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Problem: [546, 708, 538, 499, 520, 29, 269, 563, 229, 128, 373, 991, 616, 433, 555]
Solution: [499, 29, 269, 563, 229, 373, 991, 433]
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. One example is below. Q: gocogccocco A: gocog Rationale: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example. Q: qmqqmmqmqqqq A:
mqqm