prompt
stringlengths 108
10.9k
| response
stringlengths 0
2.08k
|
---|---|
Summarize the following movie reviews:
1. That neither protagonist has a distinguishable condition hardly matters because both are just actory concoctions, defined by childlike dimness and a handful of quirks.
2. Believes so fervently in humanity that it feels almost anachronistic, and it is too cute by half. But arriving at a particularly dark moment in history, it offers flickering reminders of the ties that bind us.
3. ...hits every cliche we've come to expect, including the assumption that "crazy" people are innocent, childlike and inherently funny.
4. A plucky parable about mastering one's fears, and making connections.
5. It's a hard film to resist.
6. Elling builds gradually until you feel fully embraced by this gentle comedy.
7. It's thoroughly entertaining and nonpatronizing, and occasionally even insightful.
8. A film of charm, freshness and bracingly generous humanity.
9. Rather than real figures, Elling and Kjell Bjarne become symbolic characters whose actions are supposed to relate something about the naďf's encounter with the world.
10. Heartwarming here relies less on forced air than on Petter Nćss' delicate, clever direction ... and a wonderful, imaginative script by Axel Hellstenius.
Summary: | Quirky without being overly cutesy, Elling is a gentle, warm comedy. |
Detailed Instructions: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Q: Hervorragend... . ...so mein Urteil über dieses Album. Was es so besonders macht, sind nicht nur die besonderen, von vielen Einflüssen geprägten Melodien und vielfältigen Arrangements, nein, insbesondere sind es die Texte, die gleichzeitig hochintelligent und doch immer emotional und anrührend sind. Lieder, die berühren und vieles sagen - so muss Musik sein.
A: | POS |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_RUN I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT
A: | turn around right twice after run |
In this task, you will be shown a sentence, and you should determine whether it is overruling or non-overruling. In law, an overruling sentence is a statement that nullifies a previous case decision as a precedent by a constitutionally valid statute or a decision by the same or higher ranking court which establishes a different rule on the point of law involved. Classify your answers into overruling or non-overruling
One example is below.
Q: 876 f.3d at 1306.
A: non-overruling
Rationale: It's a good example. This sentence doesn't overrule any law, So it's non-overruling.
Q: nor did ms. shahin offer any authority interpreting rule 59(e), or any legal argument to persuade this court that the motion for reconsideration was incorrectly decided.
A: | non-overruling |
Given a part of privacy policy text, identify the type of personal information which is collected, used, tracked or retained. The type of information should be present inside the given policy text, answer as 'Not Specified' otherwise
Example: The site collects your cookies or tracking elements for a basic service or feature. Collection happens in an unspecified way, and your data is aggregated or anonymized.
Example solution: Cookies and tracking elements
Example explanation: The type of user information collected is clearly stated in the given policy text as 'cookies or tracking elements'
Problem: The site collects your cookies or tracking elements for advertising. Collection happens in an unspecified way. You can configure your privacy with browser settings.
| Solution: Cookies and tracking elements |
Q: 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'.
L' estudi s' ha fet amb els objectius de conèixer quina serà la demanda de l' estació del Vallès , quina oferta de trens haurà de tenir , d' on procedirà aquesta demanda i quines mesures cal adoptar per a facilitar l' accés al nou equipament .
A: | L' (O) estudi (O) s' (O) ha (O) fet (O) amb (O) els (O) objectius (O) de (O) conèixer (O) quina (O) serà (O) la (O) demanda (O) de (O) l' (O) estació (O) del (O) Vallès (B-LOC) , (O) quina (O) oferta (O) de (O) trens (O) haurà (O) de (O) tenir (O) , (O) d' (O) on (O) procedirà (O) aquesta (O) demanda (O) i (O) quines (O) mesures (O) cal (O) adoptar (O) per (O) a (O) facilitar (O) l' (O) accés (O) al (O) nou (O) equipament (O) . (O) |
In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Input: Consider Input: 05/27/1513
Output: 1
Input: Consider Input: 05/42/1220
Output: 0
Input: Consider Input: 03/45/1175
| Output: 0
|
Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation.
Input: Consider Input: SENDER A: i am a little tired from work
Output: Bot
Input: Consider Input: SENDER A: whats up
Output: Human
Input: Consider Input: SENDER A: Come on
SENDER A: TALK
SENDER A: How old are you?
SENDER A: Do you like music?
SENDER A: What do you do for living?
SENDER A: Do you have a job?
SENDER A: Got you
SENDER A: Bye
| Output: Human
|
Definition: In this task, you are given a movie review in Persian, and you have to extract aspects of the movie mentioned in the text. We define aspects as music(موسیقی), directing(کارگردانی), screenplay/story(داستان), acting/performance(بازی), cinematography(فیلمبرداری), and scene(صحنه). Although there might be multiple aspects in a review, we only need you to write one aspect.
Input: فیلمی بسیار ضعیف دیالوگ های فوق العاده ناپخته و سطحی، بازی های خیلی بد، فیلم نامه و کارگردانی آبکی و سوتی های فراوان در فیلم. اگر فیلمهای خالتور رو کنار بگذاریم، یکی از بدترین فیلمهایی که میتوان در سینما سال 97 دید
Output: | بازی |
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.
Command: eq { count { filter_eq { all_rows ; gold ; 1 } } ; 2 }, interpretation: for the surface records of all rows , most of them fuzzily match to clay . | no |
Instructions: Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
Input: Jovovich was born on December 17, 1975, in Kyiv, Ukrainian SSR, the daughter of Galina (née Loginova), a Soviet Russian actress, and Bogdan Jovović, a Serbian doctor
Output: | December 17, 1975 |
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
Q: Georgia
A: | .ge |
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'.
Q: L' incendi també ha obligat a desviar per la via de Casp dos trens de llarg recorregut que feien el trajecte Barcelona-País Basc .
A: | L' (O) incendi (O) també (O) ha (O) obligat (O) a (O) desviar (O) per (O) la (O) via (O) de (O) Casp (B-LOC) dos (O) trens (O) de (O) llarg (O) recorregut (O) que (O) feien (O) el (O) trajecte (O) Barcelona-País (B-LOC) Basc (I-LOC) . (O) |
You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Example input: password = a
Example output: 5
Example explanation: Using 5 steps, it can become a strong password
Q: password = R84Ax!AkmKZNEGRz.45
A: | 0 |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Example: I_TURN_LEFT I_JUMP
Example solution: jump left
Example explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Problem: I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_TURN_RIGHT I_JUMP
| Solution: jump opposite right after walk around right thrice |
Read the given text and if it has abusive content then indicate via "yes". Otherwise indicate via"no".
We consider the content to be abusive if it contains any of the following instances: (1) Identity Directed Abuse (e.g., Content which contains a negative statement made against an identity. An identity is a social category that relates to a fundamental aspect of individuals community, socio-demographics, position or self-representation) (2) Affiliation Directed Abuse (e.g., Content which express negativity against an affiliation. We define affiliation as a (more or less) voluntary association with a collective. Affiliations include but are not limited to: memberships (e.g. Trade unions), party memberships (e.g. Republicans), political affiliations (e.g. Right-wing people) and occupations (e.g. Doctors).) (3) Person Directed Abuse (e.g., Content which directs negativity against an identifiable person, who is either part of the conversation thread or is named. Person-directed abuse includes serious character based attacks, such as accusing the person of lying, as well as aggression, insults and menacing language.) and (4) Counter Speech (e.g., Content which challenges, condemns or calls out the abusive language of others.). Note that URLs in the text have been replaced with [Link].
Example input: Was Michelangelo straight though? I mean, being a pizza-maniac ninja would indicate so, but... You never know.
Example output: yes
Example explanation: This text has indentity directed abuse because it is trying to judge sexual orientation of Michelangelo. Hence, the answer is "yes"
Q: well you can they're only saying that 'normalfag art genre list' in the post is what straights do, apparently
A: | no |
Given a statement about date and time, state whether the statement is true or false. The number of date/time operands in the statement ranges between 2 and 3. Let's say the values are denoted by t1, t2 and t3. The statements follow one of the following ten templates: 't1 occurs before t2, t1 doesn't occur before t2, t1 occurs after t2, t1 doesn't occur after t2, t1 occurs between t2 and t3, t1 doesn't occur between t2 and t3, t1 occured before t2 but after t3, t1 occured after t2 but before t3, t1 didn't occur before t2 but after t3, t1 didn't occur after t2 but before t3'. The output should be either 'True' or 'False'.
Q: 19:17:49 occured before 11:19:24 PM but after 2:56:34 AM
A: | False |
You will be given a definition of a task first, then some input of the task.
In this task, you are given a list of unique integers you need to swap the positions of maximum and minimum element in the list and return the updated list.
[254, 409, 441, 99, 74, 292, 395, 136, 447, 233, 367, 112, 185, 327, 22, 454, 271, 319, 293, 200]
Output: | [254, 409, 441, 99, 74, 292, 395, 136, 447, 233, 367, 112, 185, 327, 454, 22, 271, 319, 293, 200] |
Given the task definition and input, reply with output. Write a fact related to the given fact, based on the given topic word. Note that, your fact should have at least one word in common with the given fact. All facts in this task refer to scientific facts. Your related fact must form a chain with the given fact. Chains form when two facts connect together to produce the third fact. An example of a chain is: "pesticides cause pollution" (given fact) + "pollution can harm animals" (related fact) → "pesticides can harm animals" (connected chain). Avoid creating simple paraphrases of the given fact. While your generated fact should be related to the input fact, they must describe slightly different scientific phenomena. It's okay if your related fact includes some irrelevant information, provided that it has some overlap with the given fact and it contains some words corresponding to the provided topic.
Fact: Some species of reptiles can go several weeks between meals.
Topic: species reptiles scales.
| Reptiles have scales or plates. |
Definition: In medical studies, the efficacy of medical treatments (called interventions) is evaluated within a group of study participants. You will be given a sentence of a study report in which your task is to list the phrases that describe the intervention(s) of the study. You should list the phrase in the same order that they appear in the text, separated by commas. If no information about the interventions is mentioned, just answer with "not found". Interventions are: a specific drug, surgery, talking therapy, a lifestyle modification, control or placebo treatment. Do not include details, dosages, frequency and duration, intervention mentions that are not in an informative span of text.
Input: A pilot study on the effect of progressive muscle relaxation training of patients after stoma surgery .
Output: | progressive muscle relaxation training |
Part 1. Definition
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
Part 2. Example
'English : Diyarbakır 2nd Criminal Court of Peace has issued a gag order on the bomb attack on police shuttle in Diyarbakır.', 'Kurdish : Biryara qedexekirinê di rûpela Lijneya Bilnd a Radyo û Televizyonan (RTUK) de bi daxuyaniyek hat diyarkirin û wiha hat gotin:'
Answer: Yes
Explanation: The answer is 'Yes' because the second sentence is a consise and faithful translation of 'English' sentence into 'Kurdish'
Part 3. Exercise
'English : Four soldiers have lost their lives, nine others four of whom are heavily injured in the bomb attack launched against military vehicle in Turkey’s southeastern Şemdinli district of Hakkari province.','Kurdish : Li navçeya Şemzînanê ya Colemêrgê li dijî wesayîta leşkerî êrişa bombeyî pêk hat û di encamê de 4 leşkeran jiyanên xwe ji dest dan, 4 jê giran 9 leşker jî birîndar bûn.'
Answer: | Yes |
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.
Example: Angola
Example solution: 1975
Example explanation: 1975 is the year of independence of Angola.
Problem: Palau
| Solution: 1994 |
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
Example: bYubMFxyTqR, AcDbMFxSnI
Example solution: bYubfmxyTqR, AcDbfmxSnI
Example explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Problem: YRCuPheMefIUWGOFeUJtynVFt, qaUzPlGDRtMefIUWGOFeUJtjZypNBzrcOUS
| Solution: YRCuPheeeffgijmotuuwynVFt, qaUzPlGDRteeffgijmotuuwjZypNBzrcOUS |
In this task, you will be shown a sentence, and you should determine whether it is overruling or non-overruling. In law, an overruling sentence is a statement that nullifies a previous case decision as a precedent by a constitutionally valid statute or a decision by the same or higher ranking court which establishes a different rule on the point of law involved. Classify your answers into overruling or non-overruling
One example is below.
Q: 876 f.3d at 1306.
A: non-overruling
Rationale: It's a good example. This sentence doesn't overrule any law, So it's non-overruling.
Q: hence he is not entitled to relief on this ground either.
A: | non-overruling |
Q: In this task you need to give reasons to justify the pronoun coreference relations. Each of the provided inputs contains a sentence with a target pronoun and a question about how to justify the coreference between a noun phrase and the target pronoun. Good practices involve the discussion about how the descriptions attached to the targeted pronoun relate to the noun phrase candidate in the question. The reasoning could come from one or multiple following knowledge types about commonsense: First: 'Property', the knowledge about property of objects (e.g., ice is cold). Second: 'Object', the knowledge about objects (e.g., cats have ears). Third: 'Eventuality', the knowledge about eventuality (e.g., 'wake up' happens before 'open eyes'). Forth: 'Spatial', the knowledge about spatial position (e.g., object at the back can be blocked). Fifth: 'Quantity', the knowledge about numbers (e.g., 2 is smaller than 10). Sixth: all other knowledge if above ones are not suitable. Write the sentence in natural language.
Sentence: If the con artist has succeeded in fooling Sam, he would have gotten a lot of money.
Question: Why does the 'he' refer to the con artist?
A: | Because The con artist would be the one attempting to get money. |
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 sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase.
1975 년부터 76 년까지 NBA 시즌은 전국 농구 협회 (National Basketball Association)의 30 번째 시즌이었다.
Solution: La saison 1975-1976 de la National Basketball Association était la 30e saison de la NBA.
Why? This is a correct and accurate translation from Korean to French because the translated paraphrase retains the main message that between the years 1975-1976, the 30th NBA season occurred.
New input: Seymour는 런던과 로스 앤젤레스에서 더 많은 시간을 보냈지 만 그들의 관계에서 로스 앤젤레스에 살았습니다.
Solution: | Tout au long de sa relation, le couple a vécu à Los Angeles, bien que Seymour ait passé plus de temps à Londres et à Los Angeles pour leur travail. |
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: ecosystems use fusion as energy. | What do ecosystems use as energy? |
You are given a sentence in Arabic. Your job is to translate the Arabic sentence into Galician.
Example: ويوجد أساسا مرجل دوار.
Example solution: É basicamente un caldeiro que rota.
Example explanation: The Arabic sentence is correctly translated into Galician, because the meaning is preserved.
Problem: عام 1979 أتيحت لي الفرصة لوضع بصمة أصبعي على سطح المحيط بينما أستخدم شخصيتهم المغمورة المسماة جيم.
| Solution: Puiden deixar as miñas pegadas no fondo do océano en 1979 mentres usaba ese somerxíbel persoal chamado Jim. |
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Example: Find the id and city of the student address with the highest average monthly rental.
Example solution: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Example explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example.
Problem: List the asset id, details, make and model for every asset.
| Solution: SELECT asset_id , asset_details , asset_make , asset_model FROM Assets |
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
Example: Andorra
Example solution: .ad
Example explanation: .ad is the TLD of the country called Andorra.
Problem: Mozambique
| Solution: .mz |
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? If you are still confused, see the following example:
Query: SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 .
FILTER ( ?x0 != ?x1 ) .
FILTER ( ?x1 != M2 )
} Question: Who did M2 's male spouse marry
Solution: 1
Reason: Query correctly extracts data for male spouse of M2
Now, solve this instance: Query: SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by M0 .
?x0 ns:film.film.directed_by M1 .
?x0 ns:film.film.executive_produced_by ?x1 .
?x1 a ns:film.producer .
?x1 ns:film.actor.film/ns:film.performance.film M3
} Question: What was directed by M0 and M1 and executive produced by a film producer that M3 starred
Student: | 1 |
Q: In this task, you are given the name of an Indian food dish. You need to return whether the dish is "non vegetarian" or "vegetarian". Do not answer with any words other than those two.
Misti doi
A: | vegetarian |
In this task you will be given a list of integers. You should remove all of the integers that are divisible by 3 from the list. If every integer in the input list is divisible by 3 then an empty list should be returned. Zero is divisible by 3.
One example: [2, 5, 9, 6, 11]
Solution is here: [2, 5, 11]
Explanation: 6 and 9 are removed from the list because they are divisible by 3.
Now, solve this: [49, 74, -70, -37, -49, 91, 7, 11]
Solution: | [49, 74, -70, -37, -49, 91, 7, 11] |
The given sentence contains a typo which could be one of the following four types: (1) swapped letters of a word e.g. 'niec' is a typo of the word 'nice'. (2) missing letter in a word e.g. 'nic' is a typo of the word 'nice'. (3) extra letter in a word e.g. 'nicce' is a typo of the word 'nice'. (4) replaced letter in a word e.g 'nicr' is a typo of the word 'nice'. You need to identify the typo in the given sentence. To do this, answer with the word containing the typo.
Example: It is gonig to rain today.
Example solution: gonig
Example explanation: The word 'gonig' is a typo of the word 'going' as the characters 'i' and 'n' have been swaped.
Problem: A conputer desk with books and other items.
| Solution: conputer |
Detailed Instructions: 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' .
Problem:त्या माणसाने स्नान केले.
त्याला कसरत करण्यापासून घाम फुटला होता.
Solution: | cause |
Detailed Instructions: You are given a sentence in Arabic. Your job is to translate the Arabic sentence into Galician.
Q: (ضحك) ولكن الجزء الآخر من المعادلة هو انك ان اردت ان تخرج من كهفك
A: | (Risas) Pero o outro lado da ecuación é que tes que saír da túa cova. |
Definition: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Input: In the first patient, two episodes of ventricular tachycardia requiring cardioversion occurred in close temporal sequence with administering bretylium.
Output: | adverse drug event |
In this task, you have to generate the named entities (NER) given its ingredients of the recipe. Named entities are the names of the items without their quantity.
Example: 1 3/4 cups all purpose flour, 1/4 cup finely ground blanched almonds, 1 teaspoon grated lemon zest, 1/2 cup confectioners sugar, 2 sticks unsalted butter, almost melted, 4 eggs, lightly beaten, 2 cups granulated sugar, 1/4 cup flour, 1/2 teaspoon baking powder, 2 teaspoons grated lemon zest, 1/3 cup fresh lemon juice, Candied violets for garnish, optional
Example solution: flour, ground blanched almonds, lemon zest, confectioners sugar, butter, eggs, sugar, flour, baking powder, lemon zest, lemon juice, Candied violets
Example explanation: Given the required ingredients, the ner of the recipe is generated. As the ingredients contain the quantities, if we just remove quantities from ingredients, we get the ner.
Problem: 1 French bread stick, 1 jar sun-dried tomatoes in oil, 8 oz. cream cheese, Pitted Calamata olives, 8 oz. Feta cheese
| Solution: bread, tomatoes, cream cheese, olives, Feta cheese |
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
Q: Sentence: This means it is not moving yet, but it has the potential to move.
Question: When does it have potential energy?
Category: Absolute Timepoint.
A: | Yes. |
In this task you are given a passage in Bulgarian as the input content. You are expected to generate a suitable title for the passage which accurately summarizes the contents of the passage. The input is provided in the form of a long passage comprising of multiple sentences. The output should be restricted to a maximum of 20 words which describe the passage and its contents. The output can include words from the passage.
Q: Content:На 28 март служители на РУ-Долни Дъбник установяват 33-годишен и 20-годишен, от село Дисевица, които с чукове разбиват чужда недвижима вещ – бетонно отводнително съоръжение, собственост на община Долни Дъбник, на 150 метра от табелата на града в посока Плевен. Извършен е оглед на местопроизшествието. От извършителите са снети обяснения. Уведомен е прокурор. За престъпление по чл. 216, ал. 1 от НК. Работа продължават разследващ полицай и служители на РУ-Долни Дъбник.
A: Спипаха двама от Дисевица да разбиват с чукове общинско отводнително съоръжение | BG Север
****
Q: Content:Луна в знак Близнаци покровителства хората, отнасящи се леко към живота. Активирайте чувството си за хумор. Не се препоръчва рутинна работа. Хората стават по разговорчиви, но и по-склонни да изпуснат това, което не е за казване. Можете да се откажете от старите си навици. Уязвим е раменният пояс, ръцете, дихателната и нервната система. Уязвими са дихателните органи. Пазете се от простуда, не стойте на течение, в непроветрени и запушени помещения. Луната ще остане в този знак до 21:28ч. От 17:44 до 21:28ч щ
A: Удачен ден за бизнес, внимавайте какво говорите
****
Q: Content:43-годишният шофьор е гастрольор Шофьорът, който бе сгащен по време на акция, с фалшиво такси е на 43 години и не е от Пловдив. По непотвърдена официално информация, мъжът е от морското градче Айтос, където бръсне туристи през лятото, а в хладните сезони гастролира в под тепетата. Припомняме, че мнимият бакшиш влезе в капана на служители на МВР под прикритие вчера вечерта. Залавянето бе зрелищно, след като жълтото возило бе обградено от десетки служители на реда близо до Трето районно управление в квартал Кършияка. В официално съобщение на ОД на МВР – Пловдив днес се казва, че мъжът, заподозрян за осъществяване на нерегламентирана таксиметрова дейност, е заловен при специализирана операция срещу използване в търговската дейност на търговска марка и промишлен дизайн без съгласието на правопритежателя. В хода на акцията е установено, че 43-годишен шофьор е осъществявал таксиметров пътнически превоз с лек автомобил “Мерцедес”, върху който неправомерно са поставени отличителни знаци – магнитни стикери, на лицензирана таксиметрова фирма, съобщават от отдел “Икономическа полиция” в Пловдив. По случая е образувано досъдебно производство за престъпление по чл. 172б, ал. от НК. Работата по цялостното документиране и събиране на доказателствата за незаконната дейност продължава под надзора на Районна прокуратура – Пловдив.
A: | Под Тепето - Прокуратурата пое таксито менте от Кършияка
****
|
In this task, you are given an english sentence and a kurdish sentence you have to determine if they both are faithful translations of each other.
Construct an answer that is 'Yes' if the second 'Kurdish' sentence is a translation of 'English' sentence and 'No' otherwise
Example: 'English : Diyarbakır 2nd Criminal Court of Peace has issued a gag order on the bomb attack on police shuttle in Diyarbakır.', 'Kurdish : Biryara qedexekirinê di rûpela Lijneya Bilnd a Radyo û Televizyonan (RTUK) de bi daxuyaniyek hat diyarkirin û wiha hat gotin:'
Example solution: Yes
Example explanation: The answer is 'Yes' because the second sentence is a consise and faithful translation of 'English' sentence into 'Kurdish'
Problem: 'English : The attack occurred in Mendi region between Aktütün and Beyyurdu bordering Iraq 70 km far from Şemdinli district center at around 2 p.m. today (May 18).','Kurdish : Êriş îro saet 14:00an de nêzî gundê Bêzelê ku 70 km dûrê navçeya Şemzînanê ye, pêk hat.'
| Solution: Yes |
You are given first 5 messages from a series of message exchanges between 2 persons playing the game of Diplomacy which is an American strategic board game. You need to generate the next message. The message should be generated such that it fits the context seen so far. Avoid the text that is (i) tangent to the context, (ii) repeats the context.
Let me give you an example: ['Heyyyy Turkey', 'Whatcha thinking re: start of the game?', "It kind of depends. I'll probably want to stop Russia from advancing south", "I'm kind of afraid of Austria and Russia teaming together on me", 'I mean if that happens you’re donezos']
The answer to this example can be: What vibes are you getting from each of them?
Here is why: The message fits the context as it asks for the vibes of 2 of them which refers to 2 countries: Austria and Russia in the second last message. Thus it is a positive example.
OK. solve this:
['Heya there', 'Thoughts on an information sharing pact with respect to Italy?', "We don't have to attack them right away, but neither of us benefits if they get too big ya", 'Agreed. Obviously England and Germany are more immediate concerns for me (as are Austria and Russia for you). But neither of us wants to see Italy expand too far, and it would be of mutual benefit to share any information that we hear about them.', "On a related note, have you heard from Russia or Austria? I'm curious to see if Russia plans to send A Moscow north or south."]
Answer: | I don't really have a good read on Russia to be honest |
Read the passage and find if the passage agrees, disagrees, or has a neutral stance on whether Global warming is caused by human activities. Answer only with keyword (a) agrees - if passage agrees with the target (b) disagrees - if passage disagrees with the target (c) neutral - if the given passage neither agrees nor disagrees with the target. You don't need to use external knowledge in this task, and you have to answer based on the given passage.
You could have two people in the same room who agree about the details of climate change investing, but then they start fighting over the nuance.
neutral
The world needs to cut carbon emissions in half by 2030, and must eliminate them by 2050 to limit warming to relatively safe levels.
agrees
Not acting on climate change is a "kind of sin," as though God had a political program, and that program involved handing power over to Pete Buttigieg.
| agrees
|
Q: 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 : An object children found by children while playing on the street in Silopi, has exploded killing one child, injuring three others one of whom suffers a severe injury.','Kurdish : Li Silopyayê li dema zarokan dileyîst wan teqemeniyek dîtiye û ew tişt li wan teqiyaye, bi teqînê zarokek miriye û 3 birîndar bûne. Jiyana yek ji birîndaran di xeterê de ye.'
A: | Yes |
In this task, you will be shown an English sentence. You need to classify the sentence as either a representation of an anaphor number agreement or as an incorrect representation. An anaphor is an expression whose interpretation depends upon another expression. Anaphor number agreement is a restriction where a phrase agrees with the preceeding expression: plurals match plurals or singular expressions match singular expressions. In this task a valid representation of anaphor number agreement should be denoted as 'good' while everything else should be denoted as 'bad'. A correct representation of an anaphor number agreement will be a grammatically correct instance of a sentence where the subject and self-referencing nouns match plurality. An incorrect representation is a sentence in which the subject and self-referencing noun's plurality do not match.
Let me give you an example: Bob helped himself to some food.
The answer to this example can be: good
Here is why: The use of himself agrees with the singular subject Bob.
OK. solve this:
Actors hadn't concealed themselves.
Answer: | good |
instruction:
Read the passage and find if the passage agrees, disagrees, or has a neutral stance on whether Global warming is caused by human activities. Answer only with keyword (a) agrees - if passage agrees with the target (b) disagrees - if passage disagrees with the target (c) neutral - if the given passage neither agrees nor disagrees with the target. You don't need to use external knowledge in this task, and you have to answer based on the given passage.
question:
I was surprised to learn that shortage of good climate scientists is a global problem.
answer:
neutral
question:
The fight over planet-warming auto emissions has split the nation's auto industry.
answer:
neutral
question:
The theories of man-made climate change are no longer credible in light of the so-called hiatus in rising temperatures, not to mention that polar ice is increasing, not melting away.
answer:
| disagrees
|
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [100, 155, 937, 977, 949, 925, 416, 937, 714, 170, 857, 608]
A: | [937, 977, 937, 857] |
In this task, you are given a movie review in Persian, and you have to extract aspects of the movie mentioned in the text. We define aspects as music(موسیقی), directing(کارگردانی), screenplay/story(داستان), acting/performance(بازی), cinematography(فیلمبرداری), and scene(صحنه). Although there might be multiple aspects in a review, we only need you to write one aspect.
Example input: فیلم متوسطی بود از لحاظ داستان ولی خوشحالم که سینمای ایران یک نیم نگاهی به این قشر از جامعه مون کرد.نا گفته نماندگفتگو های پر تامل و تاثیرگذاری داشت با این حال امیدوارم که تماشاچیان عزیز در دام "خطالی عاطفی" نیوفتاده باشند.
Example output: داستان
Example explanation: This is a good example. The review is about the story of the movie.
Q: ب نظر من هنر شهاب حسینی تو این فیلم ها ک هدفی نداره جز گرفتن وقت بیننده ، داره حیف میشه... هنوزم نفهمیدم هدف کارگردان از اینکه صدای شهاب حسینی صداش گرفته بود چیه!؟ ولی بازی دیبای عزیز عالی بود:)) همینطور شهاب حسینی:)))))
A: | کارگردانی |
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.
One example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Solution is here: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
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.
Now, solve this: [{'first': -100, 'second': -61}, {'first': 76, 'second': -57}, {'first': -24, 'second': -37}, {'first': -49, 'second': -7}, {'first': -2, 'second': 68}, {'first': -16, 'second': 70}, {'first': 57, 'second': 50}]
Solution: | [{'first': -100, 'second': -61}, {'first': -49, 'second': -7}, {'first': -24, 'second': -37}, {'first': -16, 'second': 70}, {'first': -2, 'second': 68}, {'first': 57, 'second': 50}, {'first': 76, 'second': -57}] |
instruction:
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".
question:
17/32/1798
answer:
0
question:
14/17/1894
answer:
0
question:
08/02/1332
answer:
| 1
|
Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase.
[Q]: 1951 년에, 그는 1956 년에 죽고 은퇴했다.
[A]: Il est décédé en 1951 et a pris sa retraite en 1956.
[Q]: McSweeney는 북 아일랜드에서 태어 났으며 런던으로 이사했습니다.
[A]: McSweeney est né en Irlande du Nord mais a déménagé à Londres.
[Q]: 타이 에리 (Taieri)는 1866 년부터 1911 년까지 뉴질랜드 오 타고 지방의 옛 선거구 유권자입니다.
[A]: | Taieri est un ancien électorat parlementaire de la région néo-zélandaise d'Otago, de 1866 à 1911.
|
In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list.
Example: ['q', '31', 'a', 'd', '53', '85', 'p', '77']
Example solution: 1, 3, 5, 7, 8
Example explanation: Here, the numbers in the list are '31', '53', '85' and '77', and the unique digits used in the list are '1, 3, 5, 7, 8' in ascending order.
Problem: ['131', '47', '277', 'g', '405', '107', '179', '181', 'q']
| Solution: 0, 1, 2, 3, 4, 5, 7, 8, 9 |
Detailed Instructions: In this task you need to give reasons to justify the pronoun coreference relations. Each of the provided inputs contains a sentence with a target pronoun and a question about how to justify the coreference between a noun phrase and the target pronoun. Good practices involve the discussion about how the descriptions attached to the targeted pronoun relate to the noun phrase candidate in the question. The reasoning could come from one or multiple following knowledge types about commonsense: First: 'Property', the knowledge about property of objects (e.g., ice is cold). Second: 'Object', the knowledge about objects (e.g., cats have ears). Third: 'Eventuality', the knowledge about eventuality (e.g., 'wake up' happens before 'open eyes'). Forth: 'Spatial', the knowledge about spatial position (e.g., object at the back can be blocked). Fifth: 'Quantity', the knowledge about numbers (e.g., 2 is smaller than 10). Sixth: all other knowledge if above ones are not suitable. Write the sentence in natural language.
Problem:Sentence: Sam took French classes from Adam, because he was eager to speak it fluently.
Question: Why does the 'he' refer to sam?
Solution: | Because the person teaching the class should already be fluent. |
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...'.
One example is below.
Q: I just want to say if this does not work out I promise to to personally show up to each of your homes and apologize for my life not working out the way that it should.
A: You know what, come tell us at the community pool.
Rationale: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Q: Here it is, the paper. My paper from my pocket.
A: | Your majesty, read the scroll aloud. |
Q: 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.
Holy See (Vatican City State)
A: | Independent Church State |
Instructions: Given a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase.
Input: Blauvelt 가족은 1638 년 Rockland 카운티에 처음 도착한 후 1683 년에 미국에 처음 도착했습니다.
Output: | La famille Blauvelt est arrivée dans le comté de Rockland pour la première fois en 1638 et pour la première fois en Amérique en 1683. |
In this task, you have to generate the named entities (NER) given its ingredients of the recipe. Named entities are the names of the items without their quantity.
Q: 2 cups chicken stock, 10 ounces instant couscous, 1 teaspoon salt, 12 teaspoon ground cinnamon, 14 cup olive oil, 1 lemon, juice and zest of, 1 small red onion, chopped, 1 cucumber, 1 red bell pepper, 1 bunch green onion, 14 cup cilantro, black pepper
A: | chicken stock, couscous, salt, ground cinnamon, olive oil, lemon, red onion, cucumber, red bell pepper, green onion, cilantro, black pepper |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN
A: | run around right twice and run around 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.
Example: [47, 444, 859, 530, 197, 409]
Example solution: [47, 859, 197, 409]
Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list.
Problem: [240, 829, 983, 827, 859]
| Solution: [829, 983, 827, 859] |
Instructions: Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
Input: Sentence: She told them that she would help take care of the puppy, if she could have one.
Question: For how long would she care for the puppy?
Category: Event Duration.
Output: | No. |
Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity).
Q: Entity 1: daphnia
Entity 2: atom
A: | no |
In this task, you're given a dialogue between a customer and a flight booking agent with a gap in the conversation. Your job is to find the answer of the previous dialogue. Avoid using irrelevant extra information while creating the answer. The answer should be relevant to the question before the blank. If you fill the blank with a question, it should have an answer from the agent in the given dialogue. Fill the gap marked with underline.
Example: customer: Hello.
agent: Hello. How may I help you?
customer: I would like to do some changes in my existing reservation, can you please help me out?
agent: Sure, I will help you in booking. May I know your name to proceed further?
__
agent: Alexander Hernandez, regret to inform that there is no active reservation found under your name to amend.
customer: That's ok, no problem. Thank you for the information.
agent: Thank you for reaching us.
Example solution: customer: Sure, myself Alexander Hernandez.
Example explanation: This is pretty forward, based on the answer after the blank, the answer would be to know the name of the person, and the name is mentioned in the next dialogue to the blank
Problem: customer: Hello.
agent: Hello, How can I help you?
customer: Can you please help me in booking a flight ticket from PHX to SFO?
agent: Sure, May I know your travelling dates?
customer: I would like to fly on Aug 30 and return on Sept 01.
agent: Do you have any connection limit?
customer: I need a single connection.
agent: Are there any other preferences?
customer: I would like to prefer an economy class.
agent: May I know your name?
customer: Myself Jeffrey King.
agent: You have a connecting flight 1001 in AA airlines and price 100 in economy class, Shall I proceed?
__
agent: Your ticket has been processed and it will be send to your Email-Id shortly.
customer: Thank you.
agent: Thank you.
| Solution: customer: You can proceed to booking. |
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
Example solution: 221609
Example explanation: 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.
Problem: twotwofourzeroninetwozero
| Solution: 2240920 |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [309, 757, 483, 642, 521, 367, 294]
A: | [757, 521, 367] |
Given the task definition, example input & output, solve the new input case.
In this task, you are given a string with duplicate characters ocurring in the string. You need to return the character which is ocurring with the maximum frequency. In case of a tie, return the character with the least ascii value.
Example: mvwduljootadondrwbrledodqnmfqtxalvuxnfgft
Output: d
d is ocurring with maximum frequency of 5.
New input case for you: eplymvxiqrdpsvllkduyfuqhccgkwxhezwrrxtpjvxcct
Output: | c |
Q: Given a prompt and two completions from a language model, select the completion that is the most fluent with respect to continuing the prompt. Fluency is defined by coherency and ease of understanding, not necessarily grammatical correctness. Generate either Completion A or Completion B.
Prompt: Bitches get fucked on the roof when I aint
Completion A: talking to u. (10/21/13) Anonymous 07/17/13 (Thu) 10:03:24 AM No.
Completion B: flyin'. The snowflakes are gonna come to their senses aint they? I know, just sayin'. I hope they do. The
A: | Completion B |
Q: In this task, you need to answer 'Yes' if the given word is the longest word (in terms of number of letters) in the given sentence, else answer 'No'. Note that there could be multiple longest words in a sentence as they can have the same length that is the largest across all words in that sentence.
Sentence: 'a person in costume standing inside the bathroom'. Is 'standing' the longest word in the sentence?
A: | Yes |
Q: In this task, you need to output 'Yes' if the given number is a prime number otherwise output 'No'. A 'prime number' is a a whole number above 1 that can not be made by multiplying other whole numbers.
29057
A: | No |
In this task, you will use your knowledge about language (and common sense) to determine what element the marked number refers to. The numbers are marked with two underlines around them, like: _ number _. There are several possible answers, you'll need to choose the proper one. Carefully read the given text, pay special attention to the marked number, think about what (unwritten) information the marked number holds inside, choose the most adequate word(s) from the optional answers. If none of them seems right to you, there's also an option for other. If your answer is "REFERENCE", also write the reference entity, otherwise write the implicit option name. Options to choose from are:
REFERENCE: Some object which is being mentioned in the text before or after the target number. The reference answer has a higher priority than any other. If both Reference and another answer are possible, prioritize the Reference.
YEAR: Describing a calendric year
AGE: Describing someone's age
CURRENCY: Reference to some monetary value e.g dollar, euro etc.
PEOPLE: Describing a single/plural persons
TIME: Describing a time of the day. Usually you can add the word o'clock after those numbers.
OTHER: Some other option, which isn't listed here.
Example: Jess Mastriani: No, I don't want another crooler, thank you very much.
FBI Agent Nicole Scott: But it's good for you. It's got... honeyglaze. Please die for this crooler, Jess.
Jess Mastriani: I've had _ two _ already. Who eats three croolers in a night?
FBI Agent Nicole Scott: Take a look. [Nicole takes a huge bite] Mmmmm, Mmmmm, Mmmmm!
Example solution: REFERENCE crooler
Example explanation: In this example, the number two refers to something that appears in this text. In this example, it refers to the word: crooler.
Problem: Captain Jonathan Power: There 's room in the team for _ one _ more . But it has to be the right one . And that takes time , trust .
| Solution: PEOPLE |
You will be given a definition of a task first, then some input of the task.
In this task, you're given a sentence and question. Based on the information provided in a given sentence, you should identify the shortest continuous text span from the sentence that serves as an answer to the given question. Answer the question using coreference resolution. Coreference resolution is the task of clustering mentions in text that refer to the same underlying real world entities. For example let's take a sentence 'I voted for Obama because he was most aligned with my values, she said.' Here in this example 'I', 'my', and 'she' belong to the same cluster and 'Obama' and 'he' belong to the same cluster. Now let's discuss another example , original sentence: 'I voted for Trump because he was most aligned with my values',John said. Now here is the same sentence with resolved coreferences: 'John voted for Trump because Trump was most aligned with John's values',John said.
Sentence: The table won't fit through the doorway because it is too narrow. Question: What is too narrow?
Output: | doorway |
Given the task definition, example input & output, solve the new input case.
In this task you need to give reasons to justify the pronoun coreference relations. Each of the provided inputs contains a sentence with a target pronoun and a question about how to justify the coreference between a noun phrase and the target pronoun. Good practices involve the discussion about how the descriptions attached to the targeted pronoun relate to the noun phrase candidate in the question. The reasoning could come from one or multiple following knowledge types about commonsense: First: 'Property', the knowledge about property of objects (e.g., ice is cold). Second: 'Object', the knowledge about objects (e.g., cats have ears). Third: 'Eventuality', the knowledge about eventuality (e.g., 'wake up' happens before 'open eyes'). Forth: 'Spatial', the knowledge about spatial position (e.g., object at the back can be blocked). Fifth: 'Quantity', the knowledge about numbers (e.g., 2 is smaller than 10). Sixth: all other knowledge if above ones are not suitable. Write the sentence in natural language.
Example: Sentence: The city councilmen refused the demonstrators a permit because they feared violence.
Question: Why does the 'they' refer to the city councilmen?
Output: Because city councilmen are administrative so they are more likely to fear.
This is a correct reason since the pronoun in the sentence is descibed as ones who fear violence and the city councilmen are attached with this property.
New input case for you: Sentence: The journalists interviewed the stars of the new movie. They were very persistent, so the interview lasted for a long time.
Question: Why does the 'They' refer to the journalists?
Output: | Because journalists are persistent in interviewing. |
In this task, you are given commands (in terms of logical operations) to select relevant rows from the given table. Your job is to classify the command into one of these seven categories: (1) majority, (2) unique, (3) superlative, (4) count, (5) comparative, (6) aggregation, and (7) ordinal.
Here are the defications of each category:
1. majority: Describing the majority values (most or all) over one column, with the scope of all table rows or a subset of rows
2. unique: Describing one unique row, regarding one column, with the scope of all table rows or a subset of rows
3. Superlative: Describing the maximum or minimum value in a column, with the scope of all table rows or a subset of rows
4. Ordinal: Describing the n-th maximum or minimum value in a column, with the scope of all table rows or a subset of rows
5. Comparative: Comparing two rows in the table, regarding their values in one column
6. Count: counting some rows in the table based on the values in one column, with the scope of all table rows or a subset of rows
7. Aggregation: Describing the sum or average value over a column, with the scope of all table rows or a subset of rows.
Here are the definitions of logical operators for understanding of command:
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.
eq { count { filter_eq { filter_greater_eq { all_rows ; championship ; 5 } ; fa cup ; 1 } } ; 2 } | count |
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
Example solution: 221609
Example explanation: 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.
Problem: zerooneeightninetwoeightonethreethree
| Solution: 018928133 |
Detailed Instructions: In this task you are given a passage in Bulgarian as the input content. You are expected to generate a suitable title for the passage which accurately summarizes the contents of the passage. The input is provided in the form of a long passage comprising of multiple sentences. The output should be restricted to a maximum of 20 words which describe the passage and its contents. The output can include words from the passage.
Q: Content:Уориърс отбелязаха цели 37 точки през първата четвъртина и не изоставаха в нито един момент от мача, с който записаха 60-та си победа за сезона. Голдън Стейт поведе с осем точки след две свободни хвърляния на Къри само три минути преди края, а Джеймс Хардън пропусна стрелбите си в две последователни атаки на Хюстън. Всичко беше решено от миналогодишния най-полезен играч Къри, който отбеляза тройка 1:46 минути преди сирената и изпрати феновете към изходите. Джон Уол отбеляза 34 точки за победата на Вашингтон със 118:108 срещу Лос Анджелис Лейкърс, с което Уизърдс спечелиха титлата в Югоизточната дивизия за първи път от 38 години насам. Това беше най-дългата активна серия в НБА за клуб без първо място в собствената си дивизия. Когато за последно този франчайз беше първи, през 1979-а година, той носеше името Булетс и играеше в Мериленд. В крайна сметка отборът загуби финалната серия в НБА срещу Сиатъл Суперсоникс. Маями поведе с мач пред Чикаго в битката за последната плейофна квота на изток, след като победи с 97:96 Детройт. Хасан Уайтсайд, който получи 13 шева в ръката миналата седмица, беше герой за Хийт, след като спря изстрел на Горан Драгич със сирената и завърши мача със 17 точки.
A: | Къри с 32 точки при победа на ”Голдън Стейт” |
In this task, you're given a dialogue between a customer and a flight booking agent with a gap in the conversation. Your job is to find the answer of the previous dialogue. Avoid using irrelevant extra information while creating the answer. The answer should be relevant to the question before the blank. If you fill the blank with a question, it should have an answer from the agent in the given dialogue. Fill the gap marked with underline.
Example Input: customer: Hello.
agent: Hello. How may I serve you today?
customer: I am Kevin Green. Can you please help me in changing my existing reservation? As my plans to visit Los Angeles got postponed.
agent: Sure, I'll help you with this. Please wait a moment.
customer: Sure, I will wait for your information.
__
customer: Oh! That seems something went wrong while booking the ticket previously. Thank you for providing information.
agent: Thank you for opting us.
Example Output: agent: I have checked in reservation list to change your ticket, but could not find any reservation with your name.
Example Input: customer: Hello, I am Helen Evans here.
__
customer: Looking for a flight ticket from ORD to IAD, can you please help me? I want to travel the dates 09/05 to 09/07.
agent: Sure, please wait for a minute.
customer: Ok.
agent: Based on your request, I cannot find any flight.
customer: Ok, thank you for your service.
agent: Sorry for this inconvenience.
customer: No 9issues.
agent: It's my pleasure.
Example Output: agent: Hello. How may I assist you today?
Example Input: customer: Hello.
agent: Hello. How can I assist you with today?
customer: I would like to book a ticket can you assist me please?
agent: Sure, I can help you with that. May I know your name to proceed further?
customer: My name is Brandon Walker.
agent: Brandon, can you provide the source and the destination airport codes?
customer: I want to book a from NC - CLT to MN - MSP.
agent: Sure, could you please help me with the travelling dates?
customer: My journey dates are 12/12 & 12/14.
agent: Is there any requirements that you are looking for?
customer: My price limit is 1000 with single connection.
agent: Sure, let me check that for you. Brandon, there is a flight available at your request with price 100 and the connection limit is 1.
customer: OK, book it.
__
customer: Thank you for booking a ticket.
agent: You're welcome. Have a great journey.
Example Output: | agent: Sure. Your booking is confirmed. Your flight number is 1025 and the airline is Spirit.
|
In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
Q: Costa Rica
A: | .cr |
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'.
Q: eightnineeightfoureightsix
A: | 898486 |
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
Answer: | This app let's me play my game's.thats why I gave it 5 stars |
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
Answer: | ok |
Given a part of privacy policy text, identify the type of personal information which is collected, used, tracked or retained. The type of information should be present inside the given policy text, answer as 'Not Specified' otherwise
Q: The site collects your user profile for a basic service or feature. Collection happens when you explicitly provide information by some means outside of our label scheme.
A: | User profile |
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.
Example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence .
Example solution: Tense
Example explanation: The verbs in this example are changed from past tense to present tense.
Problem: original sentence: Susan knew that Ann's son had been in a car accident , so she told her about it . paraphrase: It was known by Susan that Ann's son had been in a car accident , so she told her about it .
| Solution: Voice |
Detailed Instructions: In this task you will be given a list of numbers and you need to find the mean (average) of that list. The mean of a list can be found by summing every number in the list then dividing the result by the size of that list. The output should be rounded to 3 decimal places.
Q: [126.318, 190.383, 196.921, -91.649, 22.683, 202.417, 226.745]
A: | 124.831 |
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.
One example: bYubMFxyTqR, AcDbMFxSnI
Solution is here: bYubfmxyTqR, AcDbfmxSnI
Explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Now, solve this: zwhUWPNWORaSqEzpqterZdQkSJeUxwhbh, OmIWKpOSqEzpqterZdFzUpiiu
Solution: | zwhUWPNWORadeepqqrstzzQkSJeUxwhbh, OmIWKpOdeepqqrstzzFzUpiiu |
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: Consider Input: [26, 1843, 3819, 2433, 21, 44, 3, 85, 1859, 1129, 1035]
Output: [32, 2048, 4096, 2048, 16, 32, 4, 64, 2048, 1024, 1024]
Input: Consider Input: [212, 380, 4841, 4690, 14, 46, 3, 10, 1498, 270]
Output: [256, 256, 4096, 4096, 16, 32, 4, 8, 1024, 256]
Input: Consider Input: [202, 1041, 3210, 1397, 21, 56, 4]
| Output: [256, 1024, 4096, 1024, 16, 64, 4]
|
This task is to find the number of 'For' loops present in the given cpp program.
One example: main()
{
float a[4];
float k;
float c;
int i;
for(i=0;i<4;i++)
{
scanf("%f",&a[i]);
}
scanf("%f",&c);
c=2*3.1415926*c/360;
k=(a[0]+a[1]+a[2]+a[3])/2;
double s,sq;
sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2);
if(sq<0)
printf("Invalid input");
else
{
s=sqrt(sq);
printf("%.4f",s);
}
}
Solution is here: 1
Explanation: The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example.
Now, solve this:
int f(int a,int min)//???a???????min?????????
{
int i;
if(a < min)//??????
{
return 0;
}
int result = 1;
for(int i = min;i<a;i++)//??????
{
if(a % i == 0)
{
result += f(a/i,i);
}
}
return result;
}
int main()
{
int n,a;//????
cin>>n;
while(cin>>a)//????
{
cout<<f(a,2)<<endl;//????
}
return 0;
}
Solution: | 1 |
In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer
One example: 6 @ 17
Solution is here: 23
Explanation: Here, '@' represents the addition operation. So, the answer is 23 (6+17=23).
Now, solve this: 4762 # 7407 @ 3231 # 2800 @ 8874 @ 3098 # 2679 @ 843 # 4951
Solution: | 2971 |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
Example: The fact that you do not want to donate to these poor, needy people only shows me that you really do not care about the embryos
Example solution: Invalid
Example explanation: It is not an argument on the topic of death penalty.
Problem: If you wanted to make a point you should have just stated it, rather than pretending you are asking a question.
| Solution: Invalid |
Q: You are given a dialog between 2 or more individuals. Within the dialog, there will be clues that indicate two individuals were or are dating. You will be prompted at the end to answer which Speaker (or named individual) is dating which other Speaker (or named individual).
Speaker 1: Yeah hey, a weird thing happened today whey I was at brunch. This woman overheard that I was marrying you and-and then she...she wished me good luck.
Speaker 2: That's sweet.
Speaker 1: No, it's more like a good luck.
Speaker 2: So uh, what did this woman look like?
Speaker 1: She was like 30, dark hair, attractive.
Speaker 2: Well, is there any chance you were looking into a bright, shiny thing called a mirror?
Speaker 1: Come on, was it somebody maybe you dated in college?
Speaker 2: No, no I only dated two girls in college, both blonde, both not attractive... Hold on one second; let me check this out.
Speaker 1: What are you doing?
Speaker 2: Well, let's see... Okay uh, is that her?
Speaker 1: Oh my God yes! Who is she?
Speaker 2: Julie Grath, my camp girlfriend.
Speaker 1: Did you break up with her?
Speaker 2: No, we're still together. Yeah we went out for two summers, and then I broke up with her.
Speaker 1: Why?
Speaker 2: Well, 'cause she came back the third summer and she'd gotten really fa-aa-aw-ow...
Speaker 1: Fat?!
Speaker 2: I did not say fat! I said, "Fa-aa-aw-ow..."
Speaker 1: You broke up with a girl because she was fat?!
Speaker 2: Yeah. Yeah, but it was a really, really long time ago! Does she still feel bad?
Speaker 1: Well, apparently she does.
Speaker 2: Well, you know what they say, elephants never forget. Seriously, good luck marrying me. Julie Grath is or was dating which Speaker?
A: | Speaker 2 |
Given the task definition and input, reply with output. Determine if the provided SQL statement properly addresses the given question. Output 1 if the SQL statement is correct and 0 otherwise. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1.
Query: SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x0 ns:people.person.nationality ns:m.0345h
} Question: Which German film producer did M1 employ
| 1 |
Instructions: In this task, you are given a country name and you need to return the barcode prefix of the given country. A barcode prefix is a 3-digit number at the begining of all the barcodes on products from a company or country. Some countries have ranges of barcode prefixes such as, 730 - 739; in such a case, a number from within that range will be considered as a valid output.
Input: Saudi Arabia
Output: | 628 |
Given the task definition and input, reply with output. Given a hotel review and the corresponding polarity of review (i.e., Negative or Positive) identify if the polarity is correct. Write 'true' if it's correct, 'false' otherwise.
Review: My company was hosting a seminar at the Millennium Knickerbocker Hotel in Chicago, IL. Each participant of the seminar stayed in one of the luxurious rooms at the hotel. My room had an incredible view of downtown Chicago and the styles of the rooms were very modern. My husband was able to stay back in the room and enjoy the large flat screen television while I attended the seminar in one of the hotels meeting rooms. On Saturday night, my company held a ball in the Crystal Ballroom. The food was excellent, the hotel chefs were the best. The servers were polite and were right there to fill up our drinks or bring us more food at the dinner. Our overall stay at Millennium Knickerbocker Hotel will be forever in my memory. It was a fun filled weekend with great food, clean rooms, excellent maid service and all the hotel personnel were polite and willing to fulfill our every need and want! We will definitely be staying here again!
Polarity: Negative
| false |
Teacher:Given a sentence in Japanese, provide an equivalent paraphrased translation in Chinese that retains the same meaning both through the translation and the paraphrase.
Teacher: Now, understand the problem? Solve this instance: フェスティバルは2007年に設立され、アリゾナ州フェニックスでデビューし、それ以来サンディエゴ、ヒューストン、チューリッヒで開催されました。
Student: | 该节日起源于2007年,在亚利桑那州的凤凰城首次亮相,此后一直在圣地亚哥,休斯敦和苏黎世举行。 |
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.
One example is below.
Q: I want you now to imagine a wearable robot that gives you superhuman abilities, or another one that takes wheelchair users up standing and walking again.
A: Želim da sada zamislite nosiv robot koji vam daje nadljudske sposobnosti, ili neki drugi koji omogučuje korisnicima invalidskih kolica da stoje i ponovno hodaju.
Rationale: The translation correctly preserves the characters in Croatian.
Q: This whole thesis really came home to me when I went to visit a college in Kansas City -- working-class college.
A: | Čitava teza mi se objasnila kad sam pošla u posjet fakultetu u Kansas Cityju -- koledžu radničke klase. |
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.
Example: [2,5,1,4],[2,5,8,4,2,0]
Example solution: [2,4,5]
Example explanation: The elements 2,4, and 5 are in both lists. This is a good example.
Problem: [8, 1, 8, 2, 9, 5, 9] , [2, 7, 6, 9, 4, 9, 10]
| Solution: [2, 9] |
Given the task definition and input, reply with output. Write a fact related to the given fact, based on the given topic word. Note that, your fact should have at least one word in common with the given fact. All facts in this task refer to scientific facts. Your related fact must form a chain with the given fact. Chains form when two facts connect together to produce the third fact. An example of a chain is: "pesticides cause pollution" (given fact) + "pollution can harm animals" (related fact) → "pesticides can harm animals" (connected chain). Avoid creating simple paraphrases of the given fact. While your generated fact should be related to the input fact, they must describe slightly different scientific phenomena. It's okay if your related fact includes some irrelevant information, provided that it has some overlap with the given fact and it contains some words corresponding to the provided topic.
Fact: erosion of soil has a negative impact on the environment.
Topic: environment forest.
| Forest environments collapse. |
Detailed Instructions: In this task, you will be shown a sentence, and you should determine whether it is overruling or non-overruling. In law, an overruling sentence is a statement that nullifies a previous case decision as a precedent by a constitutionally valid statute or a decision by the same or higher ranking court which establishes a different rule on the point of law involved. Classify your answers into overruling or non-overruling
Q: evidence not properly and officially offered and introduced cannot be considered, even if it is physically placed in the record.
A: | non-overruling |
Instructions: In this task, you need to answer 'Yes' if the given word is the longest word (in terms of number of letters) in the given sentence, else answer 'No'. Note that there could be multiple longest words in a sentence as they can have the same length that is the largest across all words in that sentence.
Input: Sentence: 'small cage being cut by a person with a green shirt on'. Is 'cut' the longest word in the sentence?
Output: | No |
The input contains texts obtained from news articles, ted talks, movie transcripts, radio transcripts, science and technology texts, and other short articles curated from the web and professional translators. Your task is to translate the given Yoruba sentence into the English language. Please bear in mind the following guidelines while doing the translation: 1) Generated output should be natural language and formal form of each sentence in your language. The output sentence should not be a colloquial form of the input sentence. The generated output should be in natural language 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) Numbers and fully capitalized words like SEPTEMBER, or 10 HOURS *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. 5) Note the input is in sentence case except for special placeholders. Please do the same in your translations.
Q: Yàtọ̀ síyẹn, àwọn alàgbà tó wà lágbègbè náà ń fi Bíbélì tu gbogbo àwọn tí àjálù náà kàn nínú.
A: | Additionally, local elders are providing spiritual comfort to all who have been impacted. |
You are given first 5 messages from a series of message exchanges between 2 persons playing the game of Diplomacy which is an American strategic board game. You need to generate the next message. The message should be generated such that it fits the context seen so far. Avoid the text that is (i) tangent to the context, (ii) repeats the context.
--------
Question: ['Hello! What are your initial plans?', 'Still hashing it out.', "Cool. I don't like Russia so far, so an A/I that can stop a juggernaut would be my preference right now.", "I haven't heard from Russia yet.", 'Oof. So you decided to attack Austria and now Russia and Turkey are in a much better position. My advice would be to apologize to Austria and fight against this juggernaut that could be forming. Attacking Austria is not gonna work well for you.']
Answer: So there is definitely a juggernaut forming
Question: ['Hey there. What are your thoughts on an anti-English opening, like a sea lion, as Germany? If you enjoy something like that then we might make good allies.', "Bonjour--not sure what a 'sea lion' is!", "It's when a lion is stranded at sea, like in the life of pi.", "That was a tiger. Let me know what you'd like me to do--I imagine it involves letting you take Belgium?", 'Good point. Sea tiger sounds more menacing anyway. \n\nIt all depends on how you like to play Germany and your relationship with Russia. I can be flexible, and if it makes sense for me to have Belgium to set up for a future play then that is good with me.']
Answer: Admittedly, I've never played this game before! Don't go spreading that around
Question: ['Hallo there Austria 😄', 'Hey. Would you mind asking Germany to bounce in Bur? I want him to have an army in Mun to scare off the Italians, and if he’s going to be stuck in Mun bouncing Bur he might as well guarantee Tyrolia.', "Sure thing I can ask him, but given that you two should be best friends I don't see why it would hurt for you to ask him too", 'I did ask him. Just trying to ensure I’m protected from Italy. I’m a very nervous Austria player.', 'Trust in your diplomacy skills 😄']
Answer: | I’ve heard that you plan to force Bur.
|
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you are given a 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".
14/25/1405
Solution: 0
Why? It is an invalid date as the month(mm) is 14 which does not lie in the range 1 to 12.
New input: 04/09/1490
Solution: | 1 |
Subsets and Splits