Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
2
2
category
stringclasses
3 values
source
stringclasses
6 values
[ { "content": "Arven bought five puppies for a total cost of $800. A certain number of puppies are on sale for $150 each. The two other puppies cost the same and each costs $175. How many puppies are on sale?", "role": "user" }, { "content": "Let's denote the number of puppies on sale as \\( x \\).\n...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Create a to-do list for a given holiday.\nThanksgiving", "role": "user" }, { "content": "- Set a date for Thanksgiving dinner \n- Start shopping for ingredients\n- Send out invites\n- Plan activities\n- Start decorating for the occasion \n- Research recipes \n- Plan menu \n- Buy wine \...
instruction
tatsu-lab/alpaca
[ { "content": "Compose a 500-word essay on the themes of loneliness revealed in Ernest Hemingway's novel \"The Old Man and the Sea\".", "role": "user" }, { "content": "In Ernest Hemingway’s novel The Old Man and the Sea, the overarching theme of loneliness is recurrently explored throughout the story...
instruction
tatsu-lab/alpaca
[ { "content": "Come up with a Python code to generate a report\nGiven employee data, generate a report of employee salary information.", "role": "user" }, { "content": "def generate_report(data):\n # create an empty output dictionary\n output = {}\n\n # Iterate over the data\n for employe...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "If a monkey swings from branch to branch at an average distance of 1.2 meters per second, how far will it swing in meters if it continues swinging for a duration of 30 minutes?", "role": "user" }, { "content": "There are 60 seconds in a minute, so 30 minutes is equal to 30 x 60 = 1800 ...
math
meta-math/MetaMathQA
[ { "content": "It is said that Mother used 5 liters (L) of water to wash rice, and Father used 4900 milliliters (㎖) of water. Who used more water?", "role": "user" }, { "content": "To compare the amounts of water used by Mother and Father, we need to convert the units so that they are the same. Since...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Tonya has opened a lemonade stand selling lemonade in small, medium, and large cups at $1, $2 and $3 respectively. At the close of business she ended up making $50. As she went back through her inventory she noticed that she sold $11 worth of small lemonades and $24 worth of medium lemonades. How ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Develop a code generator in Python that creates HTML code for a website.\nThe website should have a basic two-column layout with a header and footer.", "role": "user" }, { "content": "<!DOCTYPE html>\n<html>\n <head>\n <title>Basic Website</title>\n </head>\n <body>\n <header>...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Read this piece of code and describe it in brief.\ndef add(x, y):\n return x + y", "role": "user" }, { "content": "This is a simple Python function that takes two parameters, x and y, and returns the sum of them. The function can be called by passing the two inputs, and it will add th...
code
sahil2801/CodeAlpaca-20k
[ { "content": "Baez has 25 marbles. She loses 20% of them one day. Then a friend sees her and gives her some marbles, which results in Baez having 60 marbles. What is the ratio of the marbles given by her friend to the marbles Baez has after she lost them?", "role": "user" }, { "content": "First, let...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Denny, an Instagram influencer, starts with some followers and gets 1000 new followers every day. In a year, 20000 people unfollowed him, and he ends up with 445000 followers. How many followers did he have initially?", "role": "user" }, { "content": "Let's denote the initial number of...
math
microsoft/orca-math-word-problems-200k
[ { "content": "In order to train for his fights Rocky would run 4 miles on day one of training. Rocky would double the miles for day 2, and triple the miles from day 2 for day 3. How many miles did Rocky run in the first x days of training?\nIf we know the answer to the above question is 36, what is the value ...
math
meta-math/MetaMathQA
[ { "content": "Catriona has 8 goldfish in her aquarium. She has some angelfish and twice as many guppies as angelfish. Catriona has 44 fish in her aquarium. What is the difference between the number of angelfish and goldfish?", "role": "user" }, { "content": "Let's denote the number of angelfish as A...
math
microsoft/orca-math-word-problems-200k
[ { "content": "John buys some t-shirts that cost $20 each. He also buys $50 in pants. He spends $110 in total. How many t-shirts did he buy?", "role": "user" }, { "content": "Let's denote the number of t-shirts John bought as T.\n\nThe cost of the t-shirts is $20 each, so the total cost for the t-shi...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Brandon has a collection of 20 baseball cards. Malcom has 8 more cards than Brandon. However, then Malcom gives half of his cards to his friend Mark. How many cards does Malcom have left?", "role": "user" }, { "content": "Malcom initially has 8 more cards than Brandon, so he has 20 ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "The school band is having a car wash to raise money. Their goal is to collect $150. So far they have earned a certain amount from three families and $5 each from 15 families. They have to earn $45 more to reach their goal. How much did they earn from each of the three families?", "role": "user...
math
microsoft/orca-math-word-problems-200k
[ { "content": "To earn an airplane pilot certificate, Sangita is required to fly 1,500 hours. She has already completed 50 hours of day flying, 9 hours of night flying, and 121 hours flying cross-country. To meet her goal in exactly 6 months, how many hours per month must Sangita fly?", "role": "user" }, ...
math
meta-math/MetaMathQA
[ { "content": "In a hotdog eating competition, the first competitor can eat some hot dogs per minute. The second competitor can eat 3 times more than the first competitor, while the third competitor can eat twice as much as the second competitor. The third competitor can eat 300 hotdogs after 5 minutes. How many...
math
microsoft/orca-math-word-problems-200k
[ { "content": "John buys 1000 balloons. Each balloon holds 10 liters of air. If he buys 500-liter tanks of gas, how many tanks does he need to buy to fill all the balloons?", "role": "user" }, { "content": "First, we need to calculate the total volume of air needed to fill all the balloons. Since eac...
math
microsoft/orca-math-word-problems-200k
[ { "content": "If Carla, Kyle, and Tasha caught a total of 36 fish and Carla caught 8 fish, how many fish did Kyle catch if Kyle and Tasha caught the same number of fish?", "role": "user" }, { "content": "If Carla caught 8 fish and the total number of fish caught is 36, then Kyle and Tasha caught a t...
math
meta-math/MetaMathQA
[ { "content": "Apple sold 100 iPhones at their New York store today for an average cost of $1000. They also sold 20 iPads for an average cost of $900 and 80 Apple TVs for a certain average cost. The average cost across all products sold today was $670. What was the average cost of an Apple TV?", "role": "use...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Explain how can one sort a list of strings alphabetically in Java.", "role": "user" }, { "content": "One can use the Collections.sort() method to perform an alphabetical sort of a list of strings in Java. For example, List<String> myList = new ArrayList<String>(); myList.add(\"Joe\"); ...
code
sahil2801/CodeAlpaca-20k
[ { "content": "Categorize the following words according to their definition.\nAmbiguous, capricious, arbitrate", "role": "user" }, { "content": "Ambiguous: Unclear or having multiple meanings\nCapricious: Unpredictable or inclined to change decisions suddenly\nArbitrate: Settle a dispute by judging t...
instruction
tatsu-lab/alpaca
[ { "content": "Steve has 2 boxes of pencils with x pencils in each box. He gave Matt 3 more pencils than he gave to Lauren. If Steve gave 6 pencils to Lauren, how many pencils does he have left?\nIf we know the answer to the above question is 9, what is the value of unknown variable x?", "role": "user" }, ...
math
meta-math/MetaMathQA
[ { "content": "To make a cherry pie, Veronica needs 3 pounds of pitted cherries. There are 80 single cherries in one pound of cherries. It takes 10 minutes to pit 20 cherries. How many hours will it take Veronica to pit all the cherries?", "role": "user" }, { "content": "There are 80 cherries in ...
math
openai/gsm8k
[ { "content": "Write an HTML code to create a hyperlink back to the homepage.", "role": "user" }, { "content": "<a href=\"index.html\">Home</a>", "role": "assistant" } ]
code
sahil2801/CodeAlpaca-20k
[ { "content": "There are 28 persimmons and 32 strawberries. If you give one person 4 of any kind, how many people can you give them?", "role": "user" }, { "content": "To determine how many people you can give 4 pieces of fruit to, you need to calculate the total number of fruits and then divide by 4....
math
microsoft/orca-math-word-problems-200k
[ { "content": "There are 10 balls. Jungkook wants to put 5 balls in one box. How many boxes does he need at this time?", "role": "user" }, { "content": "Jungkook wants to put 5 balls in one box, so if he has 10 balls, he would need 10 / 5 = 2 boxes to hold all the balls.", "role": "assistant" }...
math
microsoft/orca-math-word-problems-200k
[ { "content": "What is the least positive integer that satisfies the following conditions?\n\na) When divided by 2, the remainder is 1.\n\nb) When divided by 3, the remainder is 2.\n\nc) When divided by 4, the remainder is 3.\n\nd) When divided by 5, the remainder is 4.", "role": "user" }, { "content...
math
meta-math/MetaMathQA
[ { "content": "We want to create a four-digit number using the five numbers 2, 0, 3, 5, and 8. Find the difference between the largest and smallest possible numbers.", "role": "user" }, { "content": "To create the largest possible four-digit number using the digits 2, 0, 3, 5, and 8, we need to arran...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Write a lambda expression to deduct 10 from a number.", "role": "user" }, { "content": "lambda x: x-10", "role": "assistant" } ]
code
sahil2801/CodeAlpaca-20k
[ { "content": "Let $\\mathbf{w} = \\begin{pmatrix} 2 \\\\ -1 \\\\ 2 \\end{pmatrix}.$ The set of vectors $\\mathbf{v}$ such that\n\\[\\operatorname{proj}_{\\mathbf{w}} \\mathbf{v} = \\begin{pmatrix} 4 \\\\ -2 \\\\ 4 \\end{pmatrix}\\]lie on a plane. Enter the equation of this plane in the form\n\\[Ax + By + Cz +...
math
meta-math/MetaMathQA
[ { "content": "Convert SVG markers to PNG files of different sizes.", "role": "user" }, { "content": "#!/usr/bin/python\nfrom lxml import etree\nimport gzip, re, copy, tempfile, subprocess, os\n\nSVG_NAMESPACE=\"http://www.w3.org/2000/svg\"\nINKSCAPE_NAMESPACE=\"http://www.inkscape.org/namespaces/ink...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Write a Python function to sort a dictionary by value.\ndictionary = {\n 'a': 10,\n 'b': 3,\n 'c': 5\n}", "role": "user" }, { "content": "def sortDictByValue(dictionary):\n sorted_dictionary = sorted(dictionary.items(), key=lambda x: x[1])\n return dict(sorted_dictionary)\n \ndicti...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Create a Python program to remove all occurrences of the given element in a given array.\narr = [2, 4, 5, 7, 4, 2], element = 4", "role": "user" }, { "content": "def remove_element(arr, element):\n arr = [x for x in arr if x != element]\n return arr", "role": "assistant" } ...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "What is the value of $m$ in the equation $(m-4)^3 = \\left(\\frac 18\\right)^{-1}$?", "role": "user" }, { "content": "We know that $\\left(\\frac 18\\right)^{-1} = 8$.\nSo, we have $(m-4)^3 = 8$.\nTaking the cube root of both sides, we get $m-4 = 2$.\nAdding 4 to both sides, we find th...
math
meta-math/MetaMathQA
[ { "content": "Makenna is selling candy for her Softball Team. The box contains 25 milk chocolate bars, 25 dark chocolate bars, 25 milk chocolate with almond bars, and 25 white chocolate bars. What is the percentage of each type of chocolate bar?", "role": "user" }, { "content": "The total number of ...
math
meta-math/MetaMathQA
[ { "content": "What is the sum of all integer values $n$ for which $\\binom{20}{n}+\\binom{20}{10}=\\binom{21}{11}$?", "role": "user" }, { "content": "By Pascal's Identity, $\\binom{21}{11}=\\binom{20}{10}+\\binom{20}{11}$.\nSo, we have $\\binom{20}{n}+\\binom{20}{10}=\\binom{20}{10}+\\binom{20}{11}$...
math
meta-math/MetaMathQA
[ { "content": "Create a dictionary with two key-value pairs in Python.", "role": "user" }, { "content": "my_dict = {\n \"key1\": \"value1\",\n \"key2\": \"value2\"\n}", "role": "assistant" } ]
code
sahil2801/CodeAlpaca-20k
[ { "content": "An urn contains X green balls and $6$ blue balls. A second urn contains $16$ green balls and $N$ blue balls. A single ball is drawn at random from each urn. The probability that both balls are of the same color is $0.58$. Find $N$.\n\nIf we know the answer to the above question is 144, what is the...
math
meta-math/MetaMathQA
[ { "content": "Implement a simple HTTP server using Python.", "role": "user" }, { "content": "from http.server import BaseHTTPRequestHandler, HTTPServer\n \n# HTTPRequestHandler class\nclass HTTPServer_RequestHandler(BaseHTTPRequestHandler):\n \n # GET\n def do_GET(self):\n # Send response statu...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "If a big box store normally sees 175 people entering every hour, and this number doubles during the holiday season, how many customers will the store see in a span of 8 hours during the holiday season?", "role": "user" }, { "content": "If the store normally sees 175 people entering eve...
math
meta-math/MetaMathQA
[ { "content": "Joe plays a soccer tournament with his team. Matches won score 3 points for the winning team and tied matches score 1 point for both teams. Joe and his team won 1 game and drew 3. The first-place team has won x games and tied 2. By how many points did the first-place team beat Joe's team?\nIf we k...
math
meta-math/MetaMathQA
[ { "content": "Generate a creative and imaginative description of a space alien", "role": "user" }, { "content": "The alien had a large oblong body, covered in a carapace of iridescent scales. Its two beady black eyes were set deep in its wide skull, and its long, serpentine tail was tipped with a tr...
instruction
tatsu-lab/alpaca
[ { "content": "Write a code to find the longest word in an array of strings.\nmywords = [\"Hello\", \"World\", \"Python\", \"Programming\"]", "role": "user" }, { "content": "\"\"\"\nWrite a code to find the longest word in an array of strings\n\n\"\"\"\n\nmywords = [\"Hello\", \"World\", \"Python\", ...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Given an array of integers, find the pair of elements that have the greatest difference.\narr = [2, 5, 9, 11, 15, 27];", "role": "user" }, { "content": "def find_greatest_difference(arr):\n max_diff = 0\n for i in range(len(arr)):\n for j in range(i+1, len(arr)):\n diff = abs...
code
sahil2801/CodeAlpaca-20k
[ { "content": "Create a Python program to check if a given list is sorted in ascending order.\n[7, 4, 8, 3, 10]", "role": "user" }, { "content": "def is_sorted_ascending(numbers):\n for i in range(len(numbers) - 1):\n if numbers[i] > numbers[i+1]:\n return False\n return True", "role": "assistant...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Two apartment roommates split the rent, utilities, and grocery payments equally each month. The rent for the whole apartment is $1100 and utilities are a certain amount. If one roommate pays $757 in all and the groceries for the whole apartment cost $300, how much are the utilities for the whole a...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Harper has 15 rubber bands. His brother has 6 fewer rubber bands than he has. How many rubber bands do they have together?", "role": "user" }, { "content": "Harper's brother has 6 fewer rubber bands than Harper, so Harper's brother has 15 - 6 = 9 rubber bands.\n\nTogether, Harper and h...
math
microsoft/orca-math-word-problems-200k
[ { "content": "How can we reduce our carbon emissions?", "role": "user" }, { "content": "Reducing carbon emissions can be achieved in a variety of ways. Firstly, energy efficiency should be improved by maximizing the use and life span of products and services. Additionally, renewable energy sources s...
instruction
tatsu-lab/alpaca
[ { "content": "Suppose you have to write a persuasive piece about getting rid of fossil fuels use. What 3 elements should you include in your argumentation?", "role": "user" }, { "content": "1. The detrimental effects that burning fossil fuels has on the environment, such as climate change and air po...
instruction
tatsu-lab/alpaca
[ { "content": "Suppose there are seven numbers 1.7, 1/5, 1/5, 1, 3/5, 3/8, and 1.4. Which of these numbers is the fourth largest?", "role": "user" }, { "content": "To find the fourth largest number, we need to arrange the numbers in ascending order and then identify the fourth number from the largest...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Using the Python turtle library, create a drawing of a spider web on the screen.", "role": "user" }, { "content": "import turtle\n\n# Create a starting point\nturtle.setup(400, 400)\nturtle.penup()\nturtle.backward(150)\nturtle.pendown()\n\n# Create the spiderweb\nfor _ in range(10):\n...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Write a SQL query to select rows from the table \"Customers\" where the \"City\" column equals \"London\".", "role": "user" }, { "content": "SELECT * FROM Customers WHERE City = 'London';", "role": "assistant" } ]
code
sahil2801/CodeAlpaca-20k
[ { "content": "It took an alligator named Paul some hours to walk from his home at the River Nile to the Nile Delta. On the return journey, Paul traveled with six other alligators, the journey taking 2 more hours than Paul took to walk to the Nile Delta, to reach their home at the River Nile. The combined time t...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Brittany has 3 gerbils: Puffy, Muffy, and Scruffy. Puffy weighs 5 ounces more than Muffy. Muffy weighs some ounces less than Scruffy, who weighs 12 ounces. If Brittany put Puffy and Muffy on the scale, it would indicate 23 ounces. How much less does Muffy weigh than Scruffy?", "role": "user" ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Create a function in Python which takes a user input and sorts it in ascending order.\n9,5,4,7", "role": "user" }, { "content": "def my_function(values):\n sorted_values = sorted(values)\n return sorted_values\n\nif __name__ == \"__main__\":\n values = [int(value) for value in...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Write a function in Python that takes an integer as a parameter and returns the sum of all its positive divisors", "role": "user" }, { "content": "def sum_of_divisors(n): \n divisors = [i for i in range(1,n+1) if n%i == 0] \n return sum(divisors) \n \nn = 24\nprint(\"Sum of the ...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Find the trending hashtag on Twitter.", "role": "user" }, { "content": "The trending hashtag on Twitter right now is #StayHomeSaveLives. This hashtag is being used to encourage people to stay home during the COVID-19 pandemic in order to reduce the spread of the virus.", "role": "a...
instruction
tatsu-lab/alpaca
[ { "content": "Construct a loop in PHP to print the first 5 elements of an array.\n$array = [1, 2, 3, 4, 5, 6];", "role": "user" }, { "content": "for ($i = 0; $i < 5; $i++) {\n echo $array[$i] . \" \";\n}", "role": "assistant" } ]
code
sahil2801/CodeAlpaca-20k
[ { "content": "Find the maximum of the following quadratic equation.\ny = 2x^2 - 5x - 4", "role": "user" }, { "content": "The maximum of the equation is at x = 2.25 and the maximum value of the equation is 9.4375.", "role": "assistant" } ]
instruction
tatsu-lab/alpaca
[ { "content": "A one-year subscription to a newspaper is offered with a 45% discount. How much does the discounted subscription cost if a subscription normally costs $80?", "role": "user" }, { "content": "To calculate the discounted subscription cost, you need to find 45% of the normal subscription c...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Joy is winding balls of yarn for her cat to play with. The first ball is half the size of the second ball. The third ball is three times as large as the first ball. She used 27 feet of yarn for the third ball. How many feet of yarn did she use for the second ball?", "role": "user" }, { ...
math
openai/gsm8k
[ { "content": "If Clover goes for a 1.5-mile walk in the morning and another 1.5-mile walk in the evening, every day, how many miles does he walk in 30 days?", "role": "user" }, { "content": "He walks 1.5 miles in the morning and 1.5 miles in the evening so that’s 1.5+1.5 = <<1.5+1.5=3>>3 miles\nIf h...
math
openai/gsm8k
[ { "content": "In the Math club, there are two times as many males as females. If there are 6 female members, how many members are there in the Math club in total?", "role": "user" }, { "content": "There are 6 x 2 = <<6*2=12>>12 male members in the club.\nThus, the Math club has a total of 6 + 12 = <...
math
openai/gsm8k
[ { "content": "A stock investment went up $25\\%$ in 2006. Starting at this increased value, what percent would it have to go down in 2007 to be back to its original price at the beginning of 2006?", "role": "user" }, { "content": "If the stock investment went up $25\\%$ in 2006, it would have a new ...
math
meta-math/MetaMathQA
[ { "content": "Design a python function to tokenise a given sentence into basic components like words and punctuations.", "role": "user" }, { "content": "# Importing the essential library \nimport nltk\n \n# Defining a function to tokenize a sentence\ndef tokenize(text):\n tokens = nltk.word_token...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "John has a party and invites 30 people. Of the people he invited x% didn't show up. 75% of the people who show up get steak and the rest get chicken. How many people ordered chicken?\nIf we know the answer to the above question is 6, what is the value of unknown variable x?", "role": "user"...
math
meta-math/MetaMathQA
[ { "content": "Mike decides to do more pull-ups to increase his strength for climbing. He uses the greasing the groove technique where every time he goes into a certain room he does 2 pull-ups. He decides to use his office. He goes in there 5 times a day every day. How many pull-ups does he do a week?", ...
math
meta-math/MetaMathQA
[ { "content": "If Ann, Bill, Cate, and Dale each purchased personal pan pizzas divided into 4 pieces, and Bill and Dale consumed 50% of their pizzas while Ann and Cate ate 75% of theirs, how many pizza pieces remain uneaten?", "role": "user" }, { "content": "Each person purchased a personal pan pizza...
math
meta-math/MetaMathQA
[ { "content": "A zoo has 16 pandas, paired into mates (in the same zoo). A certain percentage of the panda couples get pregnant after mating. They each have one baby, and 2 panda babies are born. What is the percentage of panda couples that get pregnant after mating?", "role": "user" }, { "content": ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "If Megan participated in a total of 100 plays and was the lead actress in 80% of them, how many times was she not the lead actress?", "role": "user" }, { "content": "If Megan participated in 100 plays and was the lead actress in 80% of them, that means she was the lead actress in 100 x...
math
meta-math/MetaMathQA
[ { "content": "Zion is 8 years old and his dad is 3 more than 4 times his age. In 10 years, how many years older is Zion's dad than him?", "role": "user" }, { "content": "Four times Zion's age is 8 x 4 = <<8*4=32>>32.\nSo Zion's dad is 32 + 3 = <<32+3=35>>35 years old.\nIn 10 years, Zion will be 8 + ...
math
openai/gsm8k
[ { "content": "Carrie and her mom go to the mall to buy new clothes for school. Carrie buys 4 shirts, 2 pairs of pants, and 2 jackets. Each shirt costs $8. Each pair of pants costs $18. Each jacket costs $60. If Carrie’s mom pays for half of the total cost of all the clothes, how much does Carrie pay for the clo...
math
openai/gsm8k
[ { "content": "Write a Python program that checks if a given number is prime.\n7", "role": "user" }, { "content": "def is_prime(n):\n if n == 2 or n == 3:\n return True\n if n < 2 or n%2 == 0:\n return False\n if n < 9:\n return True\n if n%3 == 0:\n return Fal...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "There are three numbers: 10, 11 and 12. What is the product of the largest number and the second largest number?", "role": "user" }, { "content": "The largest number is 12 and the second largest number is 11. \n\nThe product of the largest number and the second largest number is: \n12 ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Stephen ordered 2 large pizzas, both cut into 12 slices. He ate 25% of the pizza. His friend Pete ate a certain percentage of the remaining pizza. There are 9 slices left over. What percentage of the remaining pizza did Pete eat?", "role": "user" }, { "content": "Stephen ordered 2 larg...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Create a function named `parse_file` that takes a parameter named `datafile`. The function should read the input `datafile` line by line, and for the first 10 lines (not including the header) split each line on \",\" and then for each line, create a dictionary where the key is the header title of ...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "There are cards in the shape of a rectangle. If the sum of the lengths of the four sides of this card is 46 centimeters (cm) and the length of the width is 7 centimeters (cm) longer than the length of the length, find the length in centimeters (cm) of the width of this card.", "role": "user" ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "A crayon box has 24 crayons total. 8 crayons are red, x crayons are blue, there are 2/3 the number of green crayons as blue crayons, and the rest of the crayons are pink. There are 6 pink crayons. What is the value of unknown variable x? What is the value of unknown variable x?", "role": "use...
math
meta-math/MetaMathQA
[ { "content": "A liter of chlorine costs $10 and is now sold at 20% off. A box of soap that costs $16 is now sold at 25% off. How much will you save if you buy 3 liters of chlorine and 5 boxes of soap?", "role": "user" }, { "content": "A liter of chlorine costs $10 and is now sold at 20% off, so the ...
math
meta-math/MetaMathQA
[ { "content": "Create a research topic related to increasing customer loyalty.", "role": "user" }, { "content": "The research topic could focus on the effectiveness of loyalty programs in increasing customer loyalty. The research could analyze the different types of loyalty programs used by companies...
instruction
tatsu-lab/alpaca
[ { "content": "Sort a list of dictionaries in Python by a given key.\n[{'food': 'apple', 'color': 'red'}, {'food': 'banana', 'color': 'yellow'}, {'food': 'pear', 'color': 'green'}]", "role": "user" }, { "content": "list_of_dicts = [{'food': 'apple', 'color': 'red'}, {'food': 'banana', 'color': 'yello...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Of the 100 soccer balls that Nova went to inflate, 40 percent had holes in them and could not inflate, while 20% of the remaining balls were overinflated and exploded. How many balls were inflated successfully and could be used?", "role": "user" }, { "content": "If 40% of the balls had...
math
meta-math/MetaMathQA
[ { "content": "Generate a creative title for a podcast episode.", "role": "user" }, { "content": "\"Letting Go To Find Direction: A Story Of Personal Reflection\"", "role": "assistant" } ]
instruction
tatsu-lab/alpaca
[ { "content": "There are many CDs in the store. The rock and roll CDs are a certain price each, the pop CDs are $10 each, the dance CDs are $3 each, and the country CDs are $7 each. Julia wants to buy 4 of each, but she only has 75 dollars and is short by $25. How much does each rock and roll CD cost?", "rol...
math
microsoft/orca-math-word-problems-200k
[ { "content": "What is the sum of three consecutive even integers if the sum of the first and third integers is X$? The answer is 192. What is the value of unknown variable X?", "role": "user" }, { "content": "To solve this problem, we need to determine the value of x, which represents the sum of the...
math
meta-math/MetaMathQA
[ { "content": "If the city's bus system carries 1,200,000 people each day, how many people does it carry in total over a period of 13 weeks?", "role": "user" }, { "content": "There are 7 days in a week, so in one week, the bus system carries 1,200,000 x 7 = 8,400,000 people.\nIn 13 weeks, the bus sys...
math
meta-math/MetaMathQA
[ { "content": "It costs $.10 to print one page. Jenny wants to print 7 copies of her 25-page essay. She also wants to buy 7 pens that each cost $1.50. If she pays the store with 2 twenty dollar bills, how much money should she get in change?", "role": "user" }, { "content": "First, let's calculate th...
math
microsoft/orca-math-word-problems-200k
[ { "content": "If there are 5 people A, B, C, D, E, find the number of ways to make A, C, and E stand next to each other.", "role": "user" }, { "content": "To solve this problem, we can treat A, C, and E as a single unit since they need to stand next to each other. This unit, along with the remaining...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Jorge is 24 years younger than Simon. In 2005, Jorge is 16 years old. In x, Simon would be 45 years old. What is the value of unknown variable x?", "role": "user" }, { "content": "To solve this problem, we need to determine the value of x, which represents the age of Simon in the futur...
math
meta-math/MetaMathQA
[ { "content": "A farmer raises 49 chickens and 37 ducks on a farm. The combined number of ducks and rabbits is 9 more than the number of chickens. How many rabbits are there?", "role": "user" }, { "content": "Let's denote the number of rabbits as R.\n\nAccording to the information given, the combined...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Create a method to build a dictionary that contains all even numbers from the given list.\n[2, 3, 7, 8, 10, 11]", "role": "user" }, { "content": "def build_even_dict(numbers): \n even_dict = {key: value for key, value in enumerate(numbers) if value % 2 == 0} \n return even_dict", "...
code
sahil2801/CodeAlpaca-20k
[ { "content": "Determine the ratio of the area to the perimeter of an equilateral triangle with side length 4 units, expressed as a simplified radical fraction.", "role": "user" }, { "content": "The area of an equilateral triangle with side length $s$ is $\\frac{\\sqrt{3}}{4}s^2$,\nand the perimeter ...
math
meta-math/MetaMathQA
[ { "content": "What should the student do to prepare for an upcoming exam?", "role": "user" }, { "content": "The student should review the material that will be on the exam, create study notes and review them regularly, work on practice problems to reinforce concepts, and plan ahead of time an effect...
instruction
tatsu-lab/alpaca
[ { "content": "Evie collects her favorite seashells while at the beach. Each day she collects a certain number of shells. At the end of 6 days, she gives 2 shells to her brother and has 58 shells left. How many shells does she collect each day?", "role": "user" }, { "content": "Let's call the number ...
math
microsoft/orca-math-word-problems-200k
[ { "content": "Create a class in python that finds the sum of two numbers.\nNo input", "role": "user" }, { "content": "class Sum:\n def __init__(self, x, y):\n self.x = x\n self.y = y\n \n def find_sum(self):\n return self.x + self.y\n \nif __name__ == '__main__':...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "Carla spends x minutes sharpening her knife and 3 times that amount of time peeling vegetables. How much time does she spend on these activities total?\nIf we know the answer to the above question is 40, what is the value of unknown variable x?", "role": "user" }, { "content": "Carla s...
math
meta-math/MetaMathQA
[ { "content": "Construct a Python function to insert a node at the head of a given linked list.\nNot applicable", "role": "user" }, { "content": "class Node:\n def __init__(self, data):\n self.data = data\n self.next = None\n\nclass LinkedList:\n def __init__(self):\n self.head = None\n \n # Recu...
code
iamtarun/python_code_instructions_18k_alpaca
[ { "content": "There are x more pens than notebooks on Wesley's school library shelf. If there are 30 notebooks on the shelf, how many notebooks and pens, He has 110 altogether. What is the value of unknown variable x?", "role": "user" }, { "content": "To solve this problem, we need to determine the ...
math
meta-math/MetaMathQA
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
21