ostapeno/flanv2_100k huggingface dataset:
user: In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to return the sum of all the numerical elements in the list A between the positions i and j (including positions i and j). Return 0 if no numerical element is present in the list between the given ranges. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.
One example is below.
Q: 3, 7, ['A', '23', '7413', '6933', '3369', '807', 'M', '456']
A: 18522
Rationale: Here, the numbers from 3rd to 7th position are '7413', '6933', '3369', and '807', hence their sum (7413+6933+3369+807) is 18522.
Q: 9, 21, ['R', 'x', 'L', '6931', 'r', 'O', 'k', '7979', '8287', '3529', '7133', 'S', 'l', '6047', 'p', '4129', '9907', 'l', '4309', '1719', '1145', 'a', '1543', '3197', 'T', 'L', 'x', 'O']
A:

assistant: 46205
user: In this task, you're given five sentences, numbered 1 through 5, and two options a and b for possible titles for the story. Your job is to choose the title that better fits the story. Indicate your choice by 'a' or 'b'.

Example input: Sentence 1: Marcus needed clothing for a business casual event. Sentence 2: All of his clothes were either too formal or too casual. Sentence 3: He decided to buy a pair of khakis. Sentence 4: The pair he bought fit him perfectly. Sentence 5: Marcus was happy to have the right clothes for the event. Choices: a. Marcus Buys Khakis. b. Marcus Works.
Example output: a
Example explanation: Marcus's reasons for buying khakis is established, followed by his purchase of them and reaction.
Q: Sentence 1: John always wanted to learn how to fly a plane. Sentence 2: He ended up joining his uncles flight school. Sentence 3: He ended up flying a plane with his uncle after one month of training. Sentence 4: He had his first solo flight a month after his flight with his uncle. Sentence 5: He was awarded with his pilot's license a month later. Choices: a. John's Pilot Test. b. Litter box.
A:

assistant: a
user: In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to list all elements of A from the ith element to the jth element in the reverse order. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.

[Q]: 6, 6, ['S', '2531', '921', 'J', 'S', '6505', '2939', 'y', 'h', '7333', 'X', 'v', '4449']
[A]: 6505


[Q]: 2, 7, ['U', '733', '6219', 'y', '1945', 'f', 'h', '2107', 'k']
[A]: h, f, 1945, y, 6219, 733


[Q]: 1, 2, ['E', '2739', '7579', 'j', '6443', 'E']
[A]:

assistant: 2739, E
user: In this task, you are given a sentence in English, and your task is to translate it into Persian.

Let me give you an example: I heard enough of what she said to you last night to understand her unwillingness to be acting with a stranger;
The answer to this example can be: دیشب شنیدم به تو چه می‌گفت. فهمیدم که دوست ندارد با یک غریبه این نقش را بازی کند.
Here is why: This is a good example. The above sentence is correctly translated from English to Persian.

OK. solve this:
or scooping thick pea soup out of pannikins by means of battered iron spoons.
Answer:

assistant: یا نخود آب را با قاشق‌های کج و کوله آهنی از قابلمه‌های کوچک در می‌آوردند و سر می‌کشیدند.
user: You are given a statement written in Hindi. Choose the most logical word from the given 4 options which can be used to replace the <MASK> token in the statement. Output the word from the correct option .

Let me give you an example: Statement: सिग्नेचर केल्विन क्लेन अंडरवियर बुटीक, ब्यूनस आयर्स, टोरंटो, मेक्सिको सिटी, <MASK>, ग्लासगो, मेलबोर्न, हांगकांग, लंदन, मैनचेस्टर, न्यूयॉर्क शहर, शंघाई, फ्रैंकफर्ट एम् मेन, सिंगापुर में देखे जा सकते हैं। केल्विन क्लेन अंडरवियर, कार्डिफ़ के सेंट डेविड शॉपिंग सेंटर में भी 2010 में क्रिसमस से पहले एक दुकान खोलने जा रहा है।

 Option A: मैनचेस्टर

 Option B: मैनचेस्टर

 Option C: एडिनबर्ग

 Option D: मेलबोर्न
The answer to this example can be: एडिनबर्ग
Here is why: The most suitable word from the given options to replace the <MASK> token is एडिनबर्ग as the rest places have already been stated in the statement .

OK. solve this:
Statement: हमारे सौर मण्डल के सातवे ग्रह <MASK> (युरेनस) के २७ ज्ञात प्राकृतिक उपग्रह हैं। इनमें से पांच सब से बड़े चन्द्रमा अपने ही गुरुत्वाकर्षण के खिचाव से गोल हो चुके हैं जबकि बाक़ियों के अकार बेढंगे हैं, जैसा की प्राकृतिक उपग्रहों में आम देखा जाता है। इन सब चंद्रमाओं के नाम अंग्रेज़ी नाटककार विलियम शेक्सपीयर और लेखक अलेक्ज़ंडर पोप की कहानियों के पात्रों पर रखे गए हैं। सब से पहले ब्रिटिश वैज्ञानिक विलियम हरशॅल ने १७८७ में अरुण के सब से बड़े दो चंद्रमाओं - टाइटेनिआ और ओबेरॉन - की पाए जाने की घोषणा की थी।

 Option A: मिरैन्डा

 Option B: अरुण

 Option C: टाइटेनिआ

 Option D: ऍरिअल
Answer:

assistant: अरुण
user: Teacher: Based on the given context, craft a common-sense question, especially those that are LONG, INTERESTING, and COMPLEX. The goal is to write questions that are easy for humans and hard for AI machines! To create such questions, here are some suggestions: A. What may (or may not) be the plausible reason for an event? B. What may (or may not) happen before (or after, or during) an event? C. What may (or may not) be a plausible fact about someone (or something)? D. What may (or may not) happen if an event happens (or did not happen)? You can also create other types of questions. DO NOT make your question answerable without looking at the context, or question of which the correct answer can be directly extracted from the context. DO NOT ask a question that requires very specialized knowledge that is not common sense. DO NOT ask too simple or too short questions. Your question must be related to the context and answerable with common sense. Try to add more variations and complexity to the questions.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Context: I was told, in person over the phone, that my shoes were on their way. They have my money. I have no shoes.
Solution: What may happen before I called them?
Reason: The question can not be answered directly from context and requires commonsense.

Now, solve this instance: Context: It made me want to get a road bike for Dallas , then I remembered how un - bike friendly it is here . Plus , it 's a bazillion degrees in the summer ! That evening we went to Culver 's for dinner ( yum - o ! ! ! ) and then went to see Prince Caspian ( pretty good ) .
Student:

assistant: What may have been your reason against buying a bike ?
user: You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
You are given a sentence in Japanese. Your job is to translate the Japanese sentence into Galician.

処方箋を支払う為の保険は ？
Solution: Terán seguro para pagar a receita?
Why? The Japanese sentence is correctly translated into Galician, because the meaning is preserved.

New input: 実際に映画をどう作り上げるかを学んだ場所です
Solution:

assistant: Foi aquí onde aprendín como realizar eses vídeos.
user: Given an input stream, the objective of this task is to classify whether words in the stream are grammatically correct or not. The input to this task is a stream of words, possibly from captions generated by a speech-to-text engine, and the output is a classification of each word from the labels (reason) = [NO_DIFF (correct), CASE_DIFF (case error), PUNCUATION_DIFF (punctuation error), CASE_AND_PUNCUATION_DIFF (both case and punctuation error), STEM_BASED_DIFF (stem word error), DIGIT_DIFF (digit error), INTRAWORD_PUNC_DIFF (intra-word punctuation error), and UNKNOWN_TYPE_DIFF (an error that does not corrrespond to the previous categories)].

Example input: ['hey', 'everybody', 'ivan', 'from', 'weights', 'and', 'biases', 'here', 'in', 'this', 'video', "i'd"]
Example output: ['CASE_DIFF', 'PUNCUATION_DIFF', 'CASE_DIFF', 'NO_DIFF', 'CASE_DIFF', 'UNKNOWN_TYPE_DIFF', 'CASE_DIFF', 'PUNCUATION_DIFF', 'CASE_DIFF', 'NO_DIFF', 'NO_DIFF', 'CASE_DIFF']
Example explanation: This sentence is a good example since the input stream is a grammatically incorrect statement and the output labels correctly classify the words that were incorrect.
Q: ['the', 'universe', 'informally', 'means', 'everything', 'there', 'is', 'mountains', 'and', 'oceans', 'and', 'the', 'moon', 'and', 'hot', 'nuclear', 'balls', 'of', 'hydrogen', 'and', 'a', 'whole', 'lot', 'more', 'but', 'if', 'the', 'universe', 'is', 'everything', 'does', 'that', 'mean', 'it', 'includes', 'the', 'things', 'that', 'we', "don't", 'know', 'that', 'we', "don't", 'know', 'exist', 'or', 'even', 'the', 'things', 'that', 'we', 'believe', 'exist', 'but', "haven't", 'yet', 'seen', 'or', 'observed', 'for', 'example', 'is', 'the', 'future', 'a', 'part', 'of', 'the', 'universe', 'in', 'physics', 'we', 'usually', 'distinguish', 'between', 'these', 'two', 'notions', 'of', 'universe', 'as', 'one', 'the', 'observable', 'universe', 'which', 'is', 'everything', 'whose', 'existence', "we've", 'thus', 'far', 'been', 'able', 'to', 'confirm', 'or', 'observe']
A:

assistant: CASE_AND_PUNCUATION_DIFF CASE_AND_PUNCUATION_DIFF PUNCUATION_DIFF NO_DIFF PUNCUATION_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF NO_DIFF NO_DIFF CASE_DIFF NO_DIFF PUNCUATION_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF PUNCUATION_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF PUNCUATION_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF DIGIT_DIFF NO_DIFF PUNCUATION_DIFF PUNCUATION_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF
user: In this task, you are given a text from a post. Your task is to find all of the proper nouns and label them. The labels are <B-PER>, <I-PER> for persons; <B-ORG>, <I-ORG> for organizations; <B-LOC>, <I-LOC> for locations; and <B-MISC>, <I-MISC> for other nouns. The capital 'B' denotes the first word of a proper noun phrase. The capital 'I' denotes all following words of the same noun phrase. If a word is not a part of a proper noun phrase, do not label it.

Ex Input:
TONIGHT ... 

Ex Output:
TONIGHT ... 


Ex Input:
The researchers said this would make their findings more accurate . 

Ex Output:
The researchers said this would make their findings more accurate . 


Ex Input:
National Bank rose 12.71 taka to 228.7 , Eastern Cables gained 20.37 to 677.98 and Apex Tannery lost 22.72 to 597 . 

Ex Output:


assistant: National <B-ORG> Bank <I-ORG> rose 12.71 taka to 228.7 , Eastern <B-ORG> Cables <I-ORG> gained 20.37 to 677.98 and Apex <B-ORG> Tannery <I-ORG> lost 22.72 to 597 .
user: Given a story, answer the question about the story. The question is the last sentence in the input. The story has one of the three following scenarios: (1) when the individual's belief matches reality, (2) when the individual's belief does not match reality, (3) is when an individual has a false belief about another individual's beliefs. The question will ask about the location of an object in the story with respect to either none or one of the three scenarios.

[Q]: Mia entered the office. Jacob entered the office. The spinach is in the green_drawer. Jacob exited the office. Mia moved the spinach to the red_crate. Mia exited the office. Jacob entered the office. Where was the spinach at the beginning?
[A]: green_drawer


[Q]: Avery entered the back_yard. Ethan entered the back_yard. The orange is in the red_box. Ethan exited the back_yard. Avery moved the orange to the green_crate. Where will Ethan look for the orange?
[A]: red_box


[Q]: Olivia entered the crawlspace. Owen entered the crawlspace. The tangerine is in the blue_suitcase. Olivia moved the tangerine to the red_bottle. Where does Olivia think that Owen searches for the tangerine?
[A]:

assistant: red_bottle
user: In this task, you're given reviews from Amazon's food products and a summary of that review. Your task is to classify whether the given summary matches the original review. Generate "True" if the given review and its summary match, otherwise generate "False".

Example input: Review: My cat won't touch these. My dog, however, chews them and makes a mess all over the carpet and I can't get the shredded sticks out! Messy. Waste of money! 
 Summary: Cat hates them
Example output: True
Example explanation: The answer is True. Because it's a correct summary where the owner mentioned their cat hated the product.
Q: Reviews: Arrived with finish defects 
 Summary: false advertisement this is not a pd fast charge cable ...
A:

assistant: False
user: Given the task definition, example input & output, solve the new input case.
In this task, you're given the middle and ending of a three-part story. Your job is to complete the short story by writing a probable beginning of the story. Generated sentences must be short, have fewer than 10 words, and be simple as if narrating to a child. Avoid using any irrelevant extra information when creating the beginning, and use names (e.g. Jack, Barbara,...) instead of pronouns (e.g. he / she) wherever possible.
Example: Middle: Helen planned to drive to Canada but it started snowing heavily. Ending: Helen stayed home instead and planned to go another day.
Output: Helen lived in America.
Mention of the destination country name and driving implies that Helen is from a nearby foreign country.

New input case for you: Middle: Lance's car was badly damaged on one side. Ending: However, Lance decided that he would keep the Land Rover.
Output:

assistant: Lance got into a car accident with his Land Rover.
user: In this task you will be given an answer to a question. You need to generate a question. The answer given should be a correct answer for the generated question.

Ex Input:
'The New Colossus' is a sonnet that American poet Emma Lazarus (1849 -- 1887) wrote in 1883 to raise money for the construction of a pedestal for the Statue of Liberty. In 1903, the poem was cast onto a bronze plaque and mounted inside the pedestal's lower level.

Ex Output:
what is the poem on the statue of liberty


Ex Input:
As a sovereign country (2016), Texas would be the 10th largest economy in the world by GDP (ahead of South Korea and Canada). Texas's household income was $48,259 in 2010 ranking 25th in the nation. The state debt in 2012 was calculated to be $121.7 billion, or $7,400 per taxpayer. Texas has the second largest population in the country after California.

Ex Output:
how big is texas economy in the world


Ex Input:
On February 4, 2015, the band announced on its Facebook page and their official website that they are not splitting up, but are taking some time off to pursue other projects.

Ex Output:


assistant: when is fun coming out with a new album
user: Part 1. Definition
Given a sentence, generate a new sentence by performing small changes on the sentence. Here, make sure that the changes are semantically related and syntactically similar to the input. And the generated sentence should have high commonsense plausibility, that is to have reasonable probability of it being true.
Part 2. Example
Stimulating the mind helps the brain to grow essential neural cells .
Answer: Stimulating the learning helps the brain to grow new neural cells .
Explanation: This is a good example of a change in the input. The created sentence is semantically similar to the input as both are talking about growing essential neural cells and the changes in the sentence follows the commonsense knowledge.
Part 3. Exercise
You are likely to knock a couple in the grass .
Answer:

assistant: You are likely to enter a lake in the grass .
user: In this task, you are given a sentence in the Bulgarian language. Here, your job is to convert bulgarian sentence into the english language.
One example is below.
Q: Състав на Парламента: вж. протоколи
A: Membership of Parliament: see Minutes
Rationale: Bulgarian sentence is converted into english sentence.
Q: Nous poursuivons l'Heure des votes.
A:

assistant: We will continue with voting time.
user: Given a sentence in Bulgarian, generate a new Bulgarian sentence by performing small changes on the sentence. Here, make sure that the changes are semantically related and syntactically similar to the input. And the generated sentence should have high commonsense plausibility, that is to have reasonable probability of it being true.

Input: Consider Input: И ще погубите своето селище, защото има за тях друго освен онова, което са придобили.

Output: Вие ще унищожите вашата машина, защото те имат различни рецепти.


Input: Consider Input: Можете да използвате един миксер, за да разберете п.

Output: Можете да използвате науката, за да преподават в живота.


Input: Consider Input: Общуването с приятели е за изпълнение на бюджета.



assistant: Output: Чат с Хората е за да правите в интернет.
user: In this task, we ask you to write an implausible answer to a question that involves “event duration", based on a given sentence. Here, event duration is defined as the understanding of how long events typically last. For example, “brushing teeth”, usually takes a few minutes. Even though there exist multiple wrong answers, we only need a single wrong answer. Please try to keep your "answer" as simple as possible. Concise and simple "answer" is preferred over those complex and verbose ones.

Q: Sentence: The girl was a little scared and was thinking of turning back, but yet they went on. 
Question: For how long did the girl think about turning back?

A: 5 hours.
****
Q: Sentence: Still , Preetam vows to marry Nandini if she meets him again . 
Question: How long had they known each other?

A: only a few minutes.
****
Q: Sentence: Tony and Ally like to play other games like hopscotch or jump rope but that day they joined the game of tag. 
Question: How long did the game of tag last?

A:

assistant: a half minute.
****
user: In this task, you are given a short passage that conveys a stereotype. A stereotype is an over-generalized belief about a particular group of people. You are expected to classify the passage into nine types of stereotype: race-color, socioeconomic, gender, disability, nationality, sexual-orientation, physical-appearance, religion, and age.
One example: Passage: He did not think he would get sunburn because he was black
Solution is here: race-color
Explanation: This is a stereotype regarding race-color because darker-skinned people are less likely to experience sunburn.

Now, solve this: Passage: Her Russian blood made it all the worse for becoming an alcoholic.
Solution:

assistant: nationality
user: TASK DEFINITION: In this task, you will be given a set of steps that are required to answer a specific question. Your job is to generate that question. Each given step refers to either an entity (known or unknown), a propery of an entity or a query operation (count, group, union, etc.) Knowing those operations and how they appear in the input may help you generate more accurate questions.
 Select: A select step is used to return a set of objects. There are no references to previous steps in a select step. template: Return [attributes]
 Filter: A filter step is used to return results from a previous step to which a certain condition applies. template: Return [#step] [condition]
 Project: A project step should return certain attributes of the results of a previous step. template: Return [attributes] of [#step]
 Aggregate: An aggregate step returns an aggregator function applied on a step's result. template: Return the [aggregator] of [#step].
 Group: A group step is an aggregator applied on attributes. template: Return the [aggregator] of [#step] for each [attribute]
 Superlative: A superlative step is used to return the result with a highest/lowest attribute among other results. template: Return [#step1] [where] [#step2] [is] [highest / lowest]
 Comparative: A comparative step is used when we need to compare an attribute with a number to filter results. template: Return [#step1] [where] [#step2] [comparator] [number] 
 Union: A union step is used to return results of two steps together. template: Return [#step1] [or / ,] [#step2]
 Intersection: An intersection step returns the result that two steps have in common. template: Return [attribute] of both [#step1] and [#step2]
 Discard: A discard step returns result of a step and excludes result of another step from it. template: Return [#step1] besides [#step2]
 Sort: A sort returns result of another step in a specific order. template: Return [#step1] [ordered / sorted by] [#step2]
 Is true: An is true step checks a condition on another result and returns a true or false. template: Return [is / if] [condition]
 Arithmetic: An arithmatic step operates an arithmatic operation on one or more steps. template: Return the [arithmetic op.] of [#step1] [and] [#step2].
PROBLEM: #1 return fourth-grade classrooms 
#2 return students of  #1 
#3 return number of  #2 for each  #1

SOLUTION: Report the total number of students for each fourth-grade classroom.

PROBLEM: #1 return flights 
#2 return #1 from  boston 
#3 return #2 to bwi 
#4 return #3 that  serves lunch 
#5 return the earliest #4

SOLUTION: what's the earliest flight from boston to bwi that serves lunch 

PROBLEM: #1 return the  2010 census 
#2 return the  white group of #1 
#3 return the  African American group of #1 
#4 return population of #2 
#5 return population of #3 
#6 return which is the  highest of #4 ,  #5

SOLUTION:

assistant: What group had the larger population as of the 2010 census, those who identified as white or those who identified as African American?
user: You are given a sentence in Japanese. Your job is to translate the Japanese sentence into Polish.
Example: 全て肋骨の間から行うのです
Example solution: Wszystko jest robione pomiędzy żebrami.
Example explanation: The Japanese sentence is correctly translated into Polish, because the meaning is preserved.

Problem: 母はとても厳しいので、それが一番大変です。


assistant: Solution: DM: Moja matka jest bardzo twarda - to jest największe wyzwanie.
user: You are given a sentence in Spanish. Your job is to translate the Spanish sentence into Polish.

Input: Consider Input: La democracia no es simplemente una cuestión de estructuras.

Output: Demokracja to nie kwestia struktury.


Input: Consider Input: Ningún otro lugar de la Tierra nos ofrece un registro tan perfecto.

Output: Nigdzie na Ziemi nie ma drugiego takiego rejestru.


Input: Consider Input: En un mundo perfectamente racional, este debería ser el mismo número, pero pagamos de más por la oportunidad de satisfacer nuestras preferencias actuales porque sobreestimamos su estabilidad.



assistant: Output: W idealnie racjonalnym świecie te dwie liczby powinny być takie same, ale przepłacamy za możliwość zaspokojenia naszych obecnych gustów, bo przeceniamy ich trwałość.
user: In this task, You are given a review of Amazon's food products. Your task is to divide them into two classes: negative or positive, depending on the content of the review.
--------
Question: We are pad training on hardwood floors and tile. Other cleaners were driving me crazy, because they’ve disinfect but leave a sticky floor and sticky feet! This takes care of it all and no sticky feet. Just looks good as new afterward.

Answer: positive


Question: Being a contractor for 25 years I know how to calibrate a stud sensor... this is the biggest piece of junk I’ve ever bought!!! I wished I could get my money back!!!

Answer: negative


Question: In the summer I get dry eyes due to all the fans. It's nice to have a good quality eye drops to easy the dryness. I have used a few of Systane products. Very satisfied customer.

Answer:

assistant: positive