SMART
Collection
Collection of models and datasets used for ACL 2024 paper, SMART - Submodular Data Mixture Strategy for Instruciton Tuning
•
338 items
•
Updated
prompt
stringlengths 103
11.7k
| response
stringlengths 1
1.45k
|
---|---|
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' .
Example Input: मुलाने साबणाची बार पकडली.
बार निसरडा होता.
Example Output: cause
Example Input: मी पुस्तकाचे एक पृष्ठ पूर्ण केले.
मी पुढच्या पानाकडे वळलो.
Example Output: effect
Example Input: माझा पाय सुन्न झाला.
मी माझा पाय हलविला.
Example Output: | effect
|
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Example input: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Example output: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Q: [{'first': 93, 'second': -33}, {'first': 28, 'second': 21}]
A: | [{'first': 28, 'second': 21}, {'first': 93, 'second': -33}] |
In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries.
One example: Angola
Solution is here: Central Africa
Explanation: Angola is located in the Central Africa region of the world map.
Now, solve this: Guadeloupe
Solution: | Caribbean |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
[Q]: He was taken to the emergency department and given intravenous methylprednisolone sodium succinate and intravenous diphenhydramine hydrochloride.
[A]: non-adverse drug event
[Q]: We report a case of torsade de pointes following a single oral dose of amiodarone (1400 mg or 30 mg kg-1) administered after short intravenous loading for prevention of paroxysmal atrial flutter.
[A]: adverse drug event
[Q]: Disease behaviour in two patients was classified as penetrating because of concomitant ischiorectal abscesses, while one patient developed a metastatic colon carcinoma.
[A]: | non-adverse drug event
|
Detailed Instructions: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
See one example below:
Problem: able
Solution: unable
Explanation: The output is correct as able and unable are opposities of each other in meaning.
Problem: deaf
Solution: | hearing |
You will be given a definition of a task first, then some input of the task.
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Anti-gunners often mistakenly describe Castle Doctrine as "a licence to kill".
Output: | Invalid |
Definition: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Input: [308, 100, 763, 13, 286, 71, 3, 456, 229, 851, 385, 941]
Output: | [13, 71, 3, 229, 941] |
instruction:
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
question:
Sentence: I was planning to be on vacation anyway , but I may have some accessibility challenges in Ft. Worth {{ which }} I would not have had otherwise .
Word: which
answer:
WDT
question:
Sentence: {{ " }} I am , therefore I think " :)
Word: "
answer:
``
question:
Sentence: Even a little time spent receiving wholesome , uncontaminated food , good medical care , {{ etc. }} can add years to their lives .
Word: etc.
answer:
| FW
|
Given the task definition, example input & output, solve the new input case.
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: x = 3, equation weights = [4, 2]
Output: 14
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.
New input case for you: x = 6, equation weights = [3, 5]
Output: | 23 |
Detailed Instructions: 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.
Problem:password = UqG
Solution: | 3 |
Given the task definition and input, reply with output. 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.
Premise: Eli was fighting against the local school board.
Initial Context: He wanted his kids to be taught creationism in school.
Original Ending: The school board relented after much debate. The next day, his kids returned from school with good news. They had a class teaching the Hindu creation story.
Counterfactual Context: He wanted his kids to be taught only evolution in school.
| The school board relented after much debate. The next day, his kids returned from school with good news. They could skip their history class's section on the Hindu creation story. |
Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Fact: a disease in which osteoclasts are more active than osteoblasts is bone disease. | Bone disease causes what to more active that osteoblasts? |
You will be given a definition of a task first, then some input of the task.
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 : Berfo Kırbayır was calling out to the then Minister Ergin in her letter as follows:','Kurdish : Dayîka Berfo di nameya xwe de ji Wezîrê Dadê yê wê demê Sadullah Ergin re wiha bang dikir:'
Output: | Yes |
Question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package de.danoeh.antennapod.
Answer: By far the best I've used I tried half a dozen different podcast apps before finding one that was actually intuitive to navigate. The only quibble I have is that I had to plug in feed addresses for a couple of my more obscure casts that some others found but that's a small price to pay for a decent interface!
Question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.reicast.emulator.
Answer: Awsome
Question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package name.boyle.chris.sgtpuzzles.
Answer: | Nice & simple Lots of games well put together and easily controlled. |
Teacher: 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'.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Basinger was born in Athens, Georgia, on December 8, 1953
Solution: December 8, 1953
Reason: The output is correct as it is a valid text span, is of minimal length and is the correct date of birth.
Now, solve this instance: Kate Rooney Mara was born on February 27, 1983, in Bedford, New York
Student: | February 27, 1983 |
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' .
प्रेक्षकांनी कॉमेडियनला स्टेजपासून दूर नेले.
त्याने वर्णद्वेषाचा विनोद सांगितला. | cause |
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.
Q: original sentence: I poured water from the bottle into the cup until it was empty . paraphrase: I poured water from the bottles into the cups until they were empty .
A: Number
****
Q: original sentence: My meeting started at 4:00 and I needed to catch the train at 4:30 , so there wasn't much time . Luckily , it was delayed , so it worked out . paraphrase: My meeting starts at 4:00 and I need to catch the train at 4:30 , so there isn't much time . Luckily , it is delayed , so it works out .
A: Tense
****
Q: original sentence: Madonna fired her trainer because she slept with her boyfriend . paraphrase: Michael fired his trainer because he slept with his girlfriend .
A: | Gender
****
|
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.
Input: Consider Input: Three months ago, I attended a convocation for my cousin's university. It was a fun day that day. I had a great time eating all the different foods. I had a beer with a corn dog. I had some wine with a burger. They were all delicious. At the end, there was a talent show. There was a ton of talent that day. There was a magician who pulled a rabbit out of a bottle. It was insane. There was a woman who got cut into three parts, with all the parts moving. I don't know how they did it. They finished it with a man in a straight jacket doing the Houdini act. He barely got out of time before he drowned. It was scary. I hope to go to one of these again.
Output: imagined
Input: Consider Input: One of my favorite things we did is rent a boat and did some island hoping! Very exciting on the beautiful waters and pure white beaches Some of the beaches we just anchored out boat and swam to the shore. We found some huge rocks we could swim around and look at all the colorful fish. We also rented four wheeler and got to ride them all around the island. While riding up very high we could look down on all the boats surrounding the island. We got great tans and had some delicious meals. A lot of great seafood! The shopping was unique as we found some great gifts to bring back and my husband found some nice shirts he liked. We did the town and shops their with gold, silver, rings necklaces just about anything you would be looking for. We took a lot of pictures and video and have enjoy watching them. They have brought back fond memories. We have enjoyed showing them to our friends and family! We can't wait to go back. There is so much to see and do! It just a beautiful place to visit and we would recommend anyone to visit.
Output: retold
Input: Consider Input: She was accepted into Rutgers U. I am relieved I can say the efforts have an endpoint. Can I say that? Every day I still wonder if she will not be able to focus...if she will get stressed and focus too intently to overcompensate and not be aware of her surroundings. It has been hell for her and for me. What is left if you choose not to use medication though I offered to go that route with her many times once she was old enough to understand things like side effects and ineffectiveness. As I think about all we did I feel sick in my stomach. The constant disciplining to form that necessary structure that her mind couldn't do easily on it's own. OMG all the words! Talking to her until I felt like passing out. "Now..now you are processing that clearly! Can you feel the reasoning come naturally now?" Her relief when she could see out of the fog, her despair when she realized she was thinking "jumbly" again; my God how we fought against the monster. She is proud of herself; she can even tell when she is "bouncy" and needs to regroup. She deserves to be proud; she never, ever gave up. We never, ever gave up. When people say, "Your daughter is just so sharp" I don't feel proud so much as I want to throw up with remembered fear and cry with relief.
| Output: retold
|
TASK DEFINITION: Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity).
PROBLEM: Entity 1: lamb 's ear
Entity 2: turbine blade
SOLUTION: no
PROBLEM: Entity 1: wild pig
Entity 2: tail
SOLUTION: yes
PROBLEM: Entity 1: protein
Entity 2: polypeptide chain
SOLUTION: | yes
|
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
--------
Question: Medical management of the head and neck cancer patient (HNCP) most often will include radiation therapy to the head and neck region.
Answer: non-adverse drug event
Question: To know the histochemical effects of steroid treatment on eosinophil accumulation in nasal polyps of AIA and the histochemical feature of a recurring polyp and to detect distributional differences between storage and secreted forms of eosinophil cationic proteins, we carried out immunocytochemical labelling with antibodies against EGI (recognizing resting and activated eosinophils) and EG2 (recognizing only activated eosinophils), and determined eosinophil infiltration in nasal polyps that were obtained before and after steroid treatment, and at recurrence of polyps.
Answer: non-adverse drug event
Question: This is the first case of PML after SCT treated with cidofovir, and the fifth case treated with this drug in a patient without human immunodeficiency virus (HIV) infection.
Answer: | non-adverse drug event
|
Detailed Instructions: In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries.
Problem:Hungary
Solution: | Eastern Europe |
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 are the country codes of countries where people use languages other than English?
Output: | SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != "English" |
Detailed Instructions: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
Problem:malnourished
Solution: | nourished |
In this task, you are given a country name, and you need to return the year in which the country became independent. Independence is a nation's independence or statehood, usually after ceasing to be a group or part of another nation or state, or more rarely after the end of military occupation.
Ethiopia
-1000
San Marino
885
Cape Verde
| 1975
|
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
The site collects your cookies or tracking elements for analytics or research. Collection happens when you implicitly provide information on the website, and your data is aggregated or anonymized. You can configure your privacy with browser settings for the collection of your information. | Analytics/Research |
Definition: In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries.
Input: Canada
Output: | North America |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [3, 4, 6, 4, 3]
Student: | [6] |
Instructions: In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
Input: [65, -62, 98, 91, 66]
Output: | 1 |
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
[EX Q]: Context: 'Hi there! Are you excited about camping?' 'Hey! I sure am! The only thing is, I just learned that the canyon where I'm camping is going to be experiencing an unexpected heat wave over the next few days and I'm worried I might not be fully prepared. ☹️ What about you?' 'Same here! Last time my daughter got dehydrated and it made her sick!'
Utterance: 'That sounds awful! 😮 Where are you going to be camping?'
[EX A]: No
[EX Q]: Context: 'Hey, how are you doing today? are you excited to go camping?' 'I am good. How about you? Yes, I love camping!' 'I am doing great! camping is super enjoyable'
Utterance: 'Do you bring enough stuff?'
[EX A]: No
[EX Q]: Context: 'Hey how's it going' 'Good, looking forward to my camping trip.' 'Nice, I am too. I'm actually looking to gather up some extra supplies, what about you?'
Utterance: 'I need extra supplies as well. I'll be camping at a higher elevation and need extra firewood for warmth, extra food and some water. What do you need?'
[EX A]: | Yes
|
Detailed Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Problem:Fact: Two daughter cells are formed in the final stage of cell division in eukaryotes and prokaryotes.
Solution: | Two daughter cells are formed at what stage in cell division? |
Detailed Instructions: 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
Q: 63 # 1002 @ 463 # 2198 @ 9999 # 7044
A: | 281 |
Q: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
[575, 180]
A: | [] |
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.
The real problems are what I like to call the M&Ms, the Managers and the Meetings.
Pravi problemi su oni koje ja volim nazivati M&M-i, menadžeri i sastanci (Managers&Meetings).
Once you've done that, then there's the computation step.
Jednom kad to napravite, onda slijedi korak proračuna.
I wanted a place that I would have total silence and total solitude.
| Željela sam mjesto na kojemu bih imala potpunu tišinu i potpunu samoću.
|
Teacher: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
Teacher: Now, understand the problem? Solve this instance: 'English : “There is no single post left to which we haven’t applied, state’s response to us has always been pressure and threat. I met with Prime Minister Recep Tayyip Erdoğan on February 5, 2011, I got my hopes up…','Kurdish : 'Tû meqam ne ma ku em serî lê bidin. Dewletê her car bi zext û gefxarinan bersiva me da. Ez di 5ê Sibata 2011an de bi Serokwezîr Recep Tayyîp Erdogan re axivîm û bi hêvî me...''
Student: | Yes |
Definition: 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.
Input: [3, 1, 1, 6, 3, 3]
Output: | [6] |
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' .
[EX Q]: माझे जबडा उघडा पडला.
मला धक्का बसला.
[EX A]: cause
[EX Q]: मुलाने त्याच्या आईला उत्तर म्हणून कुरकुर केली.
त्याच्या आईने त्याला बोलायला सांगितले.
[EX A]: effect
[EX Q]: त्या माणसाला त्याच्या किराणा सामानावर सूट मिळाली.
त्याने एक कूपन वापरला.
[EX A]: | cause
|
Detailed 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.
Problem:gImAoB, ZjmAbT
Solution: | gIamoB, ZjambT |
Detailed Instructions: In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation.
Q: Austria
A: | Federal Republic |
Part 1. Definition
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Part 2. Example
[1, 2, 3]
Answer: [0.167, 0.333, 0.500]
Explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Part 3. Exercise
[142.503, 39.516, 192.902, 19.875, 129.438, 72.169, 43.411, 151.433, 105.703]
Answer: | [0.159 0.044 0.215 0.022 0.144 0.08 0.048 0.169 0.118] |
Definition: 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.
Input: Sentence: Cathy Wallace did not always know what she wanted to be when she grew up.
Question: Did Cathy always have this unsure feeling?
Category: Transient v. Stationary.
Output: | Yes. |
Given the task definition and input, reply with output. In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
dclNFFitWbf, atRoFFitDcup
| dclNffitWbf, atRoffitDcup |
Given the task definition and input, reply with output. In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
[{'first': 42, 'second': -16}, {'first': 69, 'second': -13}, {'first': -33, 'second': 17}, {'first': 28, 'second': 55}, {'first': 48, 'second': -8}, {'first': -87, 'second': 35}]
| [{'first': -87, 'second': 35}, {'first': -33, 'second': 17}, {'first': 28, 'second': 55}, {'first': 42, 'second': -16}, {'first': 48, 'second': -8}, {'first': 69, 'second': -13}] |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: vcaRHATZOnDzxJw
Student: | z |
Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'.
Example: Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat .
Example solution: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O)
Example explanation: We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence.
Problem: L' incendi s' ha declarat a les 15:55 hores i s' ha perllongat durant dues hores .
| Solution: L' (O) incendi (O) s' (O) ha (O) declarat (O) a (O) les (O) 15:55 (O) hores (O) i (O) s' (O) ha (O) perllongat (O) durant (O) dues (O) hores (O) . (O) |
Detailed Instructions: Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Q: giraffe
A: | beast |
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
Let me give you an example: [-11, 2, 3]
The answer to this example can be: -11
Here is why: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example.
OK. solve this:
[-36.461 94.866]
Answer: | 94.866 |
Q: 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.
[83.578, -20.563, -94.516, 162.592, 30.19, 123.678, 82.942, 180.926, 165.14, 21.159]
A: | [ 0.114 -0.028 -0.129 0.221 0.041 0.168 0.113 0.246 0.225 0.029] |
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.
[Q]: The fluorescent probe allowed us to characterize , by flow cytometry , the binding of lactotransferrin to non - activated human platelets .
[A]: platelets
[Q]: A protein precipitation , liquid chromatography / tandem mass spectrometry ( LC / MS / MS ) method has been developed and validated for the determination of eprosartan in human plasma and urine .
[A]: LC
[Q]: 5 - HT is a vasoconstrictor agent that binds to 5HT - 2A receptors and amplifies the platelet response by stimulating shape change and enhancing platelet recruitment at sites of injury ( 3 ) .
[A]: | platelet
|
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
When a change is made to the privacy policy that significantly affects data practices, users are personally notified. Users can decline the new policy by canceling their account, opting out, or through some other means. | Not Specified |
Detailed Instructions: Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'.
See one example below:
Problem: Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat .
Solution: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O)
Explanation: We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence.
Problem: Són cabines espaioses i estan adaptades a persones de mobilitat reduïda .
Solution: | Són (O) cabines (O) espaioses (O) i (O) estan (O) adaptades (O) a (O) persones (O) de (O) mobilitat (O) reduïda (O) . (O) |
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.
Problem:[12, 544, 1446, 905, 25, 90, 3, 66, 1976, 1658, 4312, 16, 74, 2, 31, 396]
Solution: | [16, 512, 1024, 1024, 32, 64, 4, 64, 2048, 2048, 4096, 16, 64, 2, 32, 512] |
Q: 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.
[135, 1686, 912, 675, 13, 60, 3, 143, 1305, 2049, 3994, 24, 43, 4, 229]
A: | [128, 2048, 1024, 512, 16, 64, 4, 128, 1024, 2048, 4096, 32, 32, 4, 256] |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Sentence: Eventually, the shelter received word that the alleged hijacker 5 miles away had been a medevac helicopter.
Question: How often does the shelter have to concern themselves with hijackers.?
Category: Frequency.
Student: | Yes. |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Q: [{'first': 43, 'second': -53}, {'first': 95, 'second': -86}]
A: [{'first': 43, 'second': -53}, {'first': 95, 'second': -86}]
****
Q: [{'first': -88, 'second': -89}, {'first': 45, 'second': -12}, {'first': 88, 'second': -54}, {'first': 63, 'second': 4}, {'first': -21, 'second': 93}, {'first': 92, 'second': 1}, {'first': -23, 'second': 81}, {'first': 32, 'second': 87}]
A: [{'first': -88, 'second': -89}, {'first': -23, 'second': 81}, {'first': -21, 'second': 93}, {'first': 32, 'second': 87}, {'first': 45, 'second': -12}, {'first': 63, 'second': 4}, {'first': 88, 'second': -54}, {'first': 92, 'second': 1}]
****
Q: [{'first': -26, 'second': 13}, {'first': -54, 'second': 89}, {'first': -92, 'second': -72}, {'first': 4, 'second': 74}, {'first': -98, 'second': -30}, {'first': -68, 'second': -97}, {'first': -71, 'second': -15}, {'first': 4, 'second': -64}, {'first': 15, 'second': -74}]
A: | [{'first': -98, 'second': -30}, {'first': -92, 'second': -72}, {'first': -71, 'second': -15}, {'first': -68, 'second': -97}, {'first': -54, 'second': 89}, {'first': -26, 'second': 13}, {'first': 4, 'second': -64}, {'first': 4, 'second': 74}, {'first': 15, 'second': -74}]
****
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
?x0 ns:film.film.written_by ?x1 .
?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 ?x2 .
?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.producer .
?x3 ns:people.person.nationality ns:m.0f8l9c .
FILTER ( ?x1 != ?x2 )
} Question: Did a film director influence M1 and marry M3 's French director
Student: | 0 |
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.
Which friend of Zach has the longest-lasting friendship?
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')
What are the days that had the smallest temperature range, and what was that range?
SELECT date , max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1
List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics."
| SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" OR t2.Company_name = "Nokia Corporation"
|
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [191, 1685, 1704, 1521, 19, 56, 3, 135, 758, 61, 3928, 19, 72]
Student: | [128, 2048, 2048, 1024, 16, 64, 4, 128, 512, 64, 4096, 16, 64] |
Given the task definition, example input & output, solve the new input case.
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Example: Command: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }, interpretation: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: yes
Here, the command and interpretion given for the command is correct that 3rd maximum should be selected from given table rows. Hence, the label is 'yes'.
New input case for you: Command: round_eq { avg { all_rows ; score } ; 277 }, interpretation: select the row whose crowd record of all rows is 2nd maximum . the venue record of this row is victoria park .
Output: | no |
Q: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Okie, dokie, Obie's here... . ...mit einem wahnsinnig, gutem Debütalbum. Der neueste Künstler aus dem Hause Shady Records hat seine CD veröffentlicht und auf dieser sind einige namenhafte Künstler als Gaststars vertreten. (Nate Dogg, Eminem, 50 Cent, Dr. Dre, D12, Busta Rhymes) Eminem ist gleich auf mehreren Songs zu hören, was Eminem Fans sehr erfreuen würde. Absolute Höhepunkte der CD sind Lady, Got some Teeth(das übrigens auch seine aktuelle Single ist), Don't come down und das Outro. Wie immer eine super CD von Shady Records, die in keiner Hip Hop Sammlung fehlen sollte.
A: | POS |
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.
One example is below.
Q: 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.
A: imagined
Rationale: 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: A situation that comes to mind as one that was striking and memorable happened around 2 weeks ago. I was relaxing at home, and my fiancee was in our bedroom watching TV. She called me into the room, telling me she had to show me something. I was expecting it to be a funny picture of our cat, or a video she found that I would be interested in. Instead, when I walked into the bedroom she handed me a home pregnancy test. She told me she was pregnant, she had just taken the test and wanted to tell me right away. I was so surprised. We were not really trying to get pregnant, but we were so excited right away. I couldn't believe that this was a journey we were going to start taking together. Later that night, we spent a long time sitting and talking about everything. We went over some decisions we are going to have to make for our baby, and how we would make them. She asked me for help finding a doctor and getting an appointment set up. This was all stuff that would have normally been so boring, but it wasn't. It was for our baby, so we were having fun even figuring out insurance things. Everything went by so fast, and I kept feeling more and more excited about the situation and everything that is yet to come.
A: | recalled |
TASK DEFINITION: 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.
PROBLEM: [10, 2, 1, 3, 9, 8, 4, 1] , [8, 9, 3, 4, 9, 4, 3, 10]
SOLUTION: [3, 4, 8, 9, 10]
PROBLEM: [10, 5, 10, 2, 9, 2, 5] , [5, 3, 5, 4, 3, 2, 6]
SOLUTION: [2, 5]
PROBLEM: [4, 7, 5, 4, 3, 1, 1, 10, 2, 4] , [9, 10, 10, 9, 3, 1, 2, 5, 6, 3]
SOLUTION: | [1, 2, 3, 5, 10]
|
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.
--------
Question: Feynman says, "From the hypothesis that the world is a fluctuation, all the predictions are that, if we look at a part of the world we've never seen before, we will find it mixed up, and not like the piece we've just looked at -- high entropy.
Answer: On kaže, "Od hipoteze da je svijet fluktuacija, svi predviđaju da ako pogledamo dio svijeta koji prije nismo vidjeli, bit će zbrkan i neće biti poput dijela koji smo sada pogledali -- visoka entropija.
Question: And he was going to speak at the high school next door to us.
Answer: On je morao održati govor u srednjoj školi do nas.
Question: There's no gas.
Answer: | I to nije normalni ručak; nema plina.
|
instruction:
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.
question:
original sentence: The man couldn't lift his son because he was so weak . paraphrase: The woman couldn't lift her daughter because she was so weak .
answer:
Gender
question:
original sentence: Archaeologists have concluded that humans lived in Laputa 20,000 years ago . They hunted for evidence on the river banks . paraphrase: Archaeologists have tentatively concluded that humans lived in Laputa 20,000 years ago . They actually hunted for evidence on the river banks .
answer:
Adverb
question:
original sentence: The table won't fit through the doorway because it is too wide . paraphrase: The tables won't fit through the doorways because they are too wide .
answer:
| Number
|
TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: no deal button not appearing YOU: we haven't even started. i want the ball and both hats. THEM: i must have the ball. YOU: i can't give up the ball either. THEM: no deal YOU: agreed. no deal. THEM: but the no deal button isn't available. YOU: i think we just keep chatting and it'll eventually pop up. THEM: unfortunate waste of time. YOU: agreed. no deal.
SOLUTION: No
PROBLEM: THEM: i take the balls and you can have the rest. YOU: i need 2 balls and a book or a hat THEM: how about 1 ball, a book, and a hat? YOU: ok.
SOLUTION: Yes
PROBLEM: THEM: i'd like the ball and a hat please. YOU: i need a ball and a book THEM: i have to get the ball. i can give you both books if you want. but i need that ball. YOU: i need both books and a hat then THEM: you can have two books + hat. i'll take ball + hat YOU: deal.
SOLUTION: | Yes
|
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
An unnamed third party does collect on the first party website or app your IP address or device IDs for service operations or security. The data is aggregated or anonymized. | Service operation and security |
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.
See one example below:
Problem: Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Solution: -LRB-
Explanation: "(" is the symbol for Left Parantheses (-LRB-).
Problem: Sentence: It is old news that the Tamil Tigers have developed a {{ strong }} network within South Africa .
Word: strong
Solution: | JJ |
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
[Q]: workforce
[A]: employment
[Q]: metamorphosis
[A]: reproduction
[Q]: spend
[A]: | pay
|
Detailed Instructions: 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.
Problem:Seclusion of women was actually a Byzantine and Persian practice, and Muslims adopted that and made that a part of their religion.
Solution: | Odvojenost žena je zapravo bila praksa Bizantinaca i Perzijanaca, a muslimani su to usvojili i učinili to dijelom svoje religije. |
You will be given a definition of a task first, then some input of the task.
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
The site collects your survey data for an unspecified purpose. Collection happens when you explicitly provide information on the website.
Output: | Unspecified |
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.
FbJjoImcQWer
r
ZcOTmSWLFzisMfDqpxEC
z
iYQnqfGWDCyojtgBRcz
| z
|
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".
11/24/1464
Output: | 1 |
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Problem:
int num;
void f(int n,int i);
main ()
{
int i,j,k,n,order,top;
for (scanf("%d",&order);order>=1;order--)
{
scanf("%d",&n);
num=0;
top=(int)sqrt(n);
for (i=1;i<=top;i++)
{
if (n%i==0)
{
num++;
//printf("n=%d i=%d top=%d\n",n,i,top);
f(n/i,i);
}
}
printf("%d\n",num);
}
}
void f(int n,int btm)
{
if (btm==1) return;
int top,i;
top=(int)sqrt(n);
//printf("f:n=%d i=%d top=%d\n",n,i,top);
if (top>=btm)
{
for (i=btm;i<=top;i++)
{
//printf("f:n=%d i=%d top=%d\n",n,i,top);
if (n%i==0)
{
num++;
f(n/i,i);
}
}
}
}
Solution: | 3 |
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.
[223, 218, 866, 851, 907, 185, 971, 166, 199, 557, 307, 372, 881, 461, 535, 354, 857, 957] | [223, 907, 971, 199, 557, 307, 881, 461, 857] |
Definition: Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story.
Input: Premise: Stacey and Alvin were getting married soon in Hawaii.
Initial Context: They couldn't afford to pay for everything with cash on hand.
Original Ending: They started to pay for things with credit cards. They did not communicate about how much they were spending. After the wedding, they found they had a combined $100,000 of debt.
Counterfactual Context: Alvin was very thrifty and Stacey was not.
Output: | Stacey started to pay for things with credit cards. She did not communicate about how much she was spending. After the wedding, they found they had $100,000 of debt. |
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.
The Golden Palace is a 5-star Japanese coffee shop with low prices, located in City centre.
name[The Golden Palace], eatType[coffee shop], food[Japanese], priceRange[cheap], customer rating[5 out of 5], area[riverside]
Bibimbap House provides Chinese food in riverside. It is near The Rice Boat.
name[Bibimbap House], food[Chinese], area[riverside], near[The Rice Boat]
Children friendly coffee shop Taste of Cambridge that serves French food can be found at riverside near Crown Plaza Hotel.
| name[Taste of Cambridge], eatType[coffee shop], food[French], area[riverside], familyFriendly[yes], near[Crowne Plaza Hotel]
|
Given the task definition and input, reply with output. Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
anger
| bangor |
Given the task definition, example input & output, solve the new input case.
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Example: Context: 'That sounds pretty reasonable as I am in need of firewood the most. Would it be most reasonable to each take what we need most and split the water down the middle?' 'Yes, it would.' 'I think that sounds fair. The problem is that there are 3 waters and one of us would get two and the other one. How should we sort that?'
Utterance: 'You can take the two water. I am not that thirsty most days.'
Output: No
In this utterance, the participant does not use self-need since they do not talk about any need for themselves.
New input case for you: Context: 'I need 2 woods first ' 'That is fine since there are 3 wood and I want 1. ' 'Then it is good deal. I need two wood, 1 food, and 1 water.'
Utterance: 'I really need all the food, I have a lot of people to feed'
Output: | No |
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.
Trash vom Feinsten . Die ernsthaften Heino-Fans mögen mir meine mit breitem Grinsen auf den Lippen geschriebene Rezension verzeihen, aber diese CD schaffte ich mir wirklich nur zum Heben der Stimmung bierseliger Jugendpartys an. Heino ist ohne Zweifel deutscher Kult, aber eben auch gesegnet mit einem nicht zu unterschätzenden Trashfaktor. Wenn eine ganze Runde sich in den Armen liegender Teenies "Blau blüht der Enzian" anstimmt, bleibt wahrlich kein Auge trocken! Vieles, was man Heino in der Vergangenheit bezüglich des Singens zumindestens umstrittenen Liedguts vorgeworfen hat, soll nicht an dieser Stelle ausdiskutiert werden. Fakt ist aber offenbar, dass der gelernte Konditor oftmals wenig Fingerspitzengefühl bei der Auswahl seines Repertoires und seiner Auftrittsorte bewies. Da Meister Kramm stets nur von anderen Autoren geschriebene Musik interpretierte, kann man ihn nicht unbedingt für den Inhalt verantwortlich machen. Was für absurde Blüten sich da allerdings gerade im textlichen Bereich ansammelten, dafür steht "Karamba, Karacho, ein Whisky" wie in Stein gemeißelt. Kostprobe gefällig? Da sitzt in Rio de Janeiro (also in Brasilien) ein braungebrannter Gaucho (die man nur mit viel Augenzudrücken NICHT mit Argentinien assoziiert), flucht auf spanisch in einem portugiesischsprachigen Land zum Wirt (der passenderweise einen italienischen Vornamen trägt), bestellt landesuntypischen Fusel und alles wird untermalt von prima argentinischen Tango-Rhythmen. Ganz großer Sport! Aufgrund des Partyfaktors keine Tiefstwertung. Bier bestellen nicht vergessen!
NEG
Was für eine tolle Idee . Ich bin ein alter Fan von Paul Kuhn, und ein Bewunderer von Bert Kaempfert und seiner Musik. Was für eine tolle Idee, diese beiden Swing-Größen musikalisch miteinander zu verbinden. Ganz besonders haben mir die Stücke gefallen, die von Greetje Kauffeld gesungen wurden. Was für eine Stimme...
POS
Naja....... . Nach großen Erwartungen aufgrund der tollen Kritiken , bin ich doch etwas enttäuscht. Irgendwie tut sich auf der Scheibe nix. Schade, hoffentlich haut er live etwas mehr drauf !
| NEG
|
Q: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
[164, 233]
A: | [233] |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Q: wash
A: squash
****
Q: live
A: hive
****
Q: who
A: | pooh
****
|
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: seelllllss
A: lllll
****
Q: puppppppppup
A: puppppppppup
****
Q: okkkookkoook
A: | kkookk
****
|
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations.
--------
Question: busque "billy 's barbecue".
Answer: search for " billy 's barbecue " .
Question: encuentra todos los restaurantes con una calificación mayor de 8.
Answer: find all the restaurants rated higher than 8 .
Question: ¿qué restaurante "mexican" tiene más comentarios?
Answer: | what " mexican " restaurant has the most reviews ?
|
Part 1. Definition
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no".
Here are the definitions of logical operators:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Part 2. Example
Command: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }, interpretation: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Answer: yes
Explanation: Here, the command and interpretion given for the command is correct that 3rd maximum should be selected from given table rows. Hence, the label is 'yes'.
Part 3. Exercise
Command: and { only { filter_eq { all_rows ; venue ; trent bridge } } ; eq { hop { filter_eq { all_rows ; venue ; trent bridge } ; date } ; 23 , 24 , 25 , 26 , 27 july 1998 } }, interpretation: select the rows whose venue record fuzzily matches to trent bridge . there is only one such row in the table . the date record of this unqiue row is 23 , 24 , 25 , 26 , 27 july 1998 .
Answer: | yes |
Given the task definition, example input & output, solve the new input case.
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Example: twotwoonesixzeronine
Output: 221609
The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example.
New input case for you: threeseventhreefivetwofivefive
Output: | 3735255 |
Given the task definition and input, reply with output. 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.
iVMxHNz
| z |
Definition: 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.
Input: [93, 1095, 1119]
Output: | [64, 1024, 1024] |
Teacher: Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Teacher: Now, understand the problem? If you are still confused, see the following example:
I_TURN_LEFT I_JUMP
Solution: jump left
Reason: If the agent turned to the left and jumped, then the agent jumped to the left.
Now, solve this instance: I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT
Student: | turn around left after jump opposite right twice |
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]: [-71, -91, -19, 58]
[A]: 20
[Q]: [-37, 62, -79, -58, 4, 23, -97]
[A]: 18
[Q]: [-48, -60, 44]
[A]: | 12
|
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
I_TURN_LEFT I_JUMP
Solution: jump left
Why? If the agent turned to the left and jumped, then the agent jumped to the left.
New input: I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT
Solution: | jump left thrice and turn opposite right twice |
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Ex Input:
[353, 953, 99, 641, 787, 160, 593, 269, 302, 315, 894, 846, 353, 461]
Ex Output:
[353, 953, 641, 787, 593, 269, 353, 461]
Ex Input:
[95, 955, 103, 456, 199, 427, 163, 678, 120, 661, 569, 107, 130, 167, 13, 196, 402, 107, 943, 57]
Ex Output:
[103, 199, 163, 661, 569, 107, 167, 13, 107]
Ex Input:
[409, 781, 60, 727, 739, 991, 249, 701, 67, 709, 404, 178, 569, 2, 976, 843, 995, 839, 401, 13]
Ex Output:
| [409, 727, 739, 991, 701, 67, 709, 569, 2, 839, 401, 13]
|
Part 1. Definition
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Part 2. Example
[47, 444, 859, 530, 197, 409]
Answer: [47, 859, 197, 409]
Explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Part 3. Exercise
[624, 653, 991, 337]
Answer: | [653, 991, 337] |
Definition: 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.
Input: [6, 2, 7, 3, 2, 1, 1, 6, 3] , [2, 2, 7, 2, 7, 3, 2, 1, 7]
Output: | [1, 2, 3, 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'.
Let me give you an example: Basinger was born in Athens, Georgia, on December 8, 1953
The answer to this example can be: December 8, 1953
Here is why: The output is correct as it is a valid text span, is of minimal length and is the correct date of birth.
OK. solve this:
Emily Jean Stone was born on November 6, 1988, in Scottsdale, Arizona, to Jeffrey Charles Stone, the founder and CEO of a general-contracting company, and Krista Jean Stone (née Yeager), a homemaker
Answer: | November 6, 1988 |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Example Input: [{'first': -64, 'second': 94}, {'first': 87, 'second': 85}, {'first': -42, 'second': 65}, {'first': 47, 'second': -49}, {'first': 43, 'second': 7}, {'first': -33, 'second': -24}, {'first': -39, 'second': -24}]
Example Output: [{'first': -64, 'second': 94}, {'first': -42, 'second': 65}, {'first': -39, 'second': -24}, {'first': -33, 'second': -24}, {'first': 43, 'second': 7}, {'first': 47, 'second': -49}, {'first': 87, 'second': 85}]
Example Input: [{'first': 71, 'second': 35}, {'first': -53, 'second': 21}, {'first': 21, 'second': 18}]
Example Output: [{'first': -53, 'second': 21}, {'first': 21, 'second': 18}, {'first': 71, 'second': 35}]
Example Input: [{'first': 54, 'second': -1}, {'first': -33, 'second': -16}, {'first': -18, 'second': -4}, {'first': 25, 'second': -62}, {'first': -96, 'second': -46}, {'first': 59, 'second': -85}, {'first': -42, 'second': 34}, {'first': -24, 'second': 85}, {'first': 35, 'second': 50}, {'first': -20, 'second': -90}]
Example Output: | [{'first': -96, 'second': -46}, {'first': -42, 'second': 34}, {'first': -33, 'second': -16}, {'first': -24, 'second': 85}, {'first': -20, 'second': -90}, {'first': -18, 'second': -4}, {'first': 25, 'second': -62}, {'first': 35, 'second': 50}, {'first': 54, 'second': -1}, {'first': 59, 'second': -85}]
|
Detailed Instructions: 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.
Q: password = QB
A: | 4 |
Given the task definition, example input & output, solve the new input case.
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example: [1, 2, 3]
Output: [0.167, 0.333, 0.500]
The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
New input case for you: [-32.791, 18.176]
Output: | [ 2.244 -1.244] |
Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'.
Q: Amb la protesta reclamen que l' empresa variï la seva actitud i accedeixi a la negociació del conveni i denuncien l' actitud ' prepotent ' de l' Ajuntament de Manresa .
A: | Amb (O) la (O) protesta (O) reclamen (O) que (O) l' (O) empresa (O) variï (O) la (O) seva (O) actitud (O) i (O) accedeixi (O) a (O) la (O) negociació (O) del (O) conveni (O) i (O) denuncien (O) l' (O) actitud (O) ' (O) prepotent (O) ' (O) de (O) l' (O) Ajuntament (B-ORG) de (I-ORG) Manresa (I-ORG) . (O) |
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...'.
Listen, I'm just saying that we can be roommates. That's just where the relationship ends. | The deed is in my name. You had me sign these papers. |
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Q: int prime(int n)
{
int i,judge=1;
for(i=2;i<n;i++)
{
if(n%i==0)
judge=0;
}
return judge;
}
int function(int number,int x)
{
int temp=0,i,result=0;
if(!prime(number))
{
for(i=x;i<=number;i++)
if(number%i==0)
{
x=i;
temp=number/i;
result+=function(temp,x);
}
}
else if((number>=x||number==1)&&prime(number))
result=1;
return result;
}
int main()
{
int i,times,number;
cin>>times;
for(i=0;i<times;i++)
{
cin>>number;
cout<<function(number,2)<<endl;
}
return 0;
}
A: | 3 |
Definition: 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.
Input: [83, 1948, 2924, 2321, 18, 44, 4, 30, 1997]
Output: | [64, 2048, 2048, 2048, 16, 32, 4, 32, 2048] |