question
stringlengths 20
343
| answer
stringlengths 16
70
|
---|---|
2 birds were sitting on the fence . 4 more birds came to join them . How many birds are sitting on the fence ? | 2 + 4 = 6 #### 6 |
A bee has 6 legs . How many legs do 2 bees have ? | 6 * 2 = 12 #### 12 |
A bathing suit manufacturer has a supply of 14797 bathing suits for men . In addition , it has 4969 bathing suits for women . How many bathing suits are available overall ? | 14797 + 4969 = 19766 #### 19766 |
Larry has 67 cards . Dennis takes 9 away . How many cards will Larry have ? | 67 - 9 = 58 #### 58 |
There are 27 pencils in the drawer . Nancy placed 45 more pencils in the drawer . How many pencils are now there in total ? | 27 + 45 = 72 #### 72 |
Ned had to wash 9 short sleeve shirts and 21 long sleeve shirts before school . If he had only washed 29 of them by the time school started , how many did he not wash ? | 9 + 21 - 29 = 1 #### 1 |
In 1986 , there were 1125 students in Central High School . The number of students enrolled in 1987 was 4 % less than in 1986 . How many students were enrolled in 1987 ? | 1125 * ( 1.0 - 4 * 0.01 ) = 1080 #### 1080 |
So far , an orchard has sold a combined total of 9792 pounds of fresh and frozen fruit this season . If they have sold 3513 pounds of frozen fruit , how many pounds of fresh fruit have been sold so far ? | 9792 - 3513 = 6279 #### 6279 |
Todd has some gum . Steve gave him 16 more pieces of gum . Now Todd has 54 pieces of gum . How many pieces did Todd have to start with ? | 54 - 16 = 38 #### 38 |
Mike picked 7 apples , Nancy picked 3 apples , and Keith picked 6 apples and 4 pears , at the farm . How many apples were picked in total ? | 7 + 3 + 6 = 16 #### 16 |
Theresa has 32 crayons . Janice has 12 crayons . She shares 13 with Nancy . How many crayons will Theresa have ? | 32 - 13 = 19 #### 19 |
Connie had some marbles . She gave 183 to Juan . Now she has 593 marbles left . How many did she have to start with ? | 183 + 593 = 776 #### 776 |
A new building needed 12 windows . The builder had already installed 6 of them . If it takes 4 hours to install each window , how long will it take him to install the rest ? | 4 * ( 12 - 6 ) = 24 #### 24 |
Paige had 8 songs on her mp3 player . If she deleted 5 old songs from it and then added 30 new songs , how many songs does she have on her mp3 player ? | 8 + 30 - 5 = 33 #### 33 |
A worksheet had 7 problems on it . If a teacher had 17 worksheets to grade and had already graded 8 of them , how many more problems does she have to grade ? | 7 * ( 17 - 8 ) = 63 #### 63 |
Alyssa bought some toys . She bought a football for $ 5.71 , and spent $ 6.59 on marbles . In total , how much did Alyssa spend on toys ? | 5.71 + 6.59 = 12.3 #### 12.3 |
While making desserts for a bake sale , Victor used 0.62 scoop of brown sugar as well as 0.25 scoop of white sugar . How much more brown sugar did Victor use ? | 0.62 - 0.25 = 0.38 #### 0.38 |
Sara has 9 dozen golf balls . How many golf balls does she have ? | 9 * 12.0 = 108 #### 108 |
Pamela has 50 Skittles . She gives 7 to Karen . How many Skittles will Pamela have ? | 50 - 7 = 43 #### 43 |
Sue ’ s mother made 75 cookies . She put the cookies in bags , with 3 cookies in each bag . How many bags could she fill up ? | 75 / 3 = 25 #### 25 |
Tori was 4.4 feet tall . Then she grew 2.86 feet taller . How tall is Tori now ? | 4.4 + 2.86 = 7.26 #### 7.26 |
Carefully following a recipe , Kenny used exactly 0.17 cup of oil and 1.17 cups of water . How many cups of liquid did Kenny use in all ? | 0.17 + 1.17 = 1.33 #### 1.33 |
There were 17 girls and 32 boys trying out for the schools basketball team . If only 10 of them got called back , how many students did n't make the cut ? | 17 + 32 - 10 = 39 #### 39 |
Marcia spent 300 minutes working on her science project . How many hours did Marcia spend on her science project ? | 300 / 60.0 = 5 #### 5 |
Zoe had 6 songs on her mp3 player . If she deleted 3 old songs from it and then added 20 new songs , how many songs does she have on her mp3 player ? | 6 + 20 - 3 = 23 #### 23 |
At a pizza party , Mason and his friends drank 2.67 bottles of lemon - lime soda and 2.67 bottles of cola . How much soda did they drink in all ? | 2.67 + 2.67 = 5.33 #### 5.33 |
For the fifth grade play , the chairs have been put into 27 rows with 16 chairs in each row . How many chairs have been put out for the play ? | 27 * 16 = 432 #### 432 |
Keith grew 6 turnips . Alyssa grew 9 turnips . How many turnips did they grow in all ? | 6 + 9 = 15 #### 15 |
There are 4 walnut trees currently in the park . Park workers will plant 6 walnut trees today . How many walnut trees will the park have when the workers are finished ? | 4 + 6 = 10 #### 10 |
There are 39 scissors and 22 pencils in the drawer . Dan placed 13 scissors in the drawer . How many scissors are now there in total ? | 39 + 13 = 52 #### 52 |
Tom had 5 books . If he sold 4 of them and used the money he earned to buy 38 new books , how many books would Tom have ? | 5 + 38 - 4 = 39 #### 39 |
Amy was playing a video game where she scores 4 points for each treasure she finds . If she found 6 treasures on the first level and 2 on the second , what would her score be ? | 4 * ( 6 + 2 ) = 32 #### 32 |
In fourth grade there were 40 students at the start of the year . During the year 14 students left and 26 new students came to school . How many students were in fourth grade at the end ? | 40 + 26 - 14 = 52 #### 52 |
Nancy bought 615 crayons that came in packs of 15 . How many packs of crayons did Nancy buy ? | 615 / 15 = 41 #### 41 |
Roger has 95 candies . He gives 3 to Stephanie . How many candies will Roger have ? | 95 - 3 = 92 #### 92 |
An oil pipe in the sea broke . Before engineers started to fix the pipe , 6522 liters of oil leaked into the water . While the engineers worked , the pipe leaked 5165 more liters of oil . In all , how many liters of oil leaked into the water ? | 6522 + 5165 = 11687 #### 11687 |
At the arcade , Tom won 32 tickets playing ' whack a mole ' and 25 tickets playing ' skee ball ' . If he spent 7 of his tickets on a hat , how many tickets does Tom have left ? | 32 + 25 - 7 = 50 #### 50 |
John had 33 socks . If he threw away 19 old ones that did n't fit and bought 13 new ones , how many socks would he have ? | 33 + 13 - 19 = 27 #### 27 |
Harry starts with 79 apples . He buys 5 more . How many apples does Harry end with ? | 79 + 5 = 84 #### 84 |
Ryan has 72 marbles and 17 blocks . If he shares the marbles among 9 friends , how many marbles does each friend get ? | 72 / 9 = 8 #### 8 |
Jane has 28 old , brown sheets of drawing paper and 27 old , yellow sheets of drawing paper . How many pieces of drawing paper does she have ? | 28 + 27 = 55 #### 55 |
Keith has 20 books . Jason has 21 books . How many books do they have together ? | 20 + 21 = 41 #### 41 |
Alyssa loves eating fruits . Alyssa paid $ 12.08 for grapes , and $ 9.85 for cherries . In total , how much money did Alyssa spend ? | 12.08 + 9.85 = 21.93 #### 21.93 |
A marine biologist measured 1 fish that was 0.3 foot long and a second fish that was 0.2 foot long . How much longer was the first fish ? | 0.3 - 0.2 = 0.1 #### 0.1 |
Nancy has 9 five dollars bills . How much money does she have ? | 9 * 5.0 = 45 #### 45 |
Edward and his friend were buying trick decks from the magic shop for 9 dollars each . How much did they spend if Edward bought 4 decks and his friend bought 4 decks ? | 9 * ( 4 + 4 ) = 72 #### 72 |
Louise has 42 oranges stored in boxes . If there are 7 boxes , how many oranges must go in each box ? | 42 / 7 = 6 #### 6 |
Faye was playing a video game where she scores 7 points for each treasure she finds . If she found 2 treasures on the first level and 6 on the second , what would her score be ? | 7 * ( 2 + 6 ) = 56 #### 56 |
Before December , customers buy 1346 ear muffs from the mall . During December , they buy 6444 , and there are none . In all , how many ear muffs do the customers buy ? | 1346 + 6444 = 7790 #### 7790 |
At the hardware store , 0.25 the nails are size 2d and 0.5 the nails are size 4d . What fraction of the nails are either size 2d or 4d ? | 0.25 + 0.5 = 0.75 #### 0.75 |
Jane starts with 87 crayons . 7 are eaten by a hippopotamus . How many crayons does Jane end with ? | 87 - 7 = 80 #### 80 |
Emily collected eggs from the hen and put them into 303 baskets . She put 28 eggs into each basket . How many eggs did Emily collect ? | 303 * 28 = 8484 #### 8484 |
Mrs. Hilt had 15 cents . She bought a pencil for 11 cents . How much money did she have left ? | 15 - 11 = 4 #### 4 |
Wendy was playing a video game and had 43 lives . In a hard part of the game she lost 8 lives . If she got 39 more lives in the next level , how many lives would she have ? | 43 + 39 - 8 = 74 #### 74 |
Mike invited 13 friends to a birthday party , but 7 could n't come . If he wanted to buy enough cupcakes so each person could have exactly 4 , how many should he buy ? | 4 * ( 13 - 7 ) = 24 #### 24 |
Paige had 11 songs on her mp3 player . If she deleted 9 old songs from it and then added 8 new songs , how many songs does she have on her mp3 player ? | 11 + 8 - 9 = 10 #### 10 |
To fill an order , the factory dyed 61921 yards of silk green and 49500 yards pink . How many yards of silk did it dye for that order ? | 61921 + 49500 = 111421 #### 111421 |
Martha has 2 peanuts . Joyce has 26 peanuts . If Joyce gives all of her peanuts to Martha , how many peanuts will Martha have ? | 2 + 26 = 28 #### 28 |
A pet shelter had 9 puppies when another 12 were brought in . If 3 puppies a day are adopted , how long would it take for all of them to be adopted ? | ( 9 + 12 ) / 3 = 7 #### 7 |
There are 9 oak trees currently in the park . Park workers had to cut down 2 oak trees that were damaged . How many oak trees will the park have when the workers are finished ? | 9 - 2 = 7 #### 7 |
Edward earned 4 dollars for each lawn he mowed . If he had 17 lawns to mow , but forgot to mow 9 of them , how much money did he actually earn ? | 4 * ( 17 - 9 ) = 32 #### 32 |
Mandy made an apple pie . She used 0.67 tablespoon of cinnamon and 0.5 tablespoon of nutmeg . How much more cinnamon than nutmeg did Mandy use ? | 0.67 - 0.5 = 0.17 #### 0.17 |
A trivia team had 15 members total , but during a game 6 members did n't show up . If each member that did show up scored 3 points , how many points were scored total ? | 3 * ( 15 - 6 ) = 27 #### 27 |
Alyssa has 37 blue balloons , Sandy has 28 blue balloons , and Sally has 39 blue balloons . How many blue balloons do they have in all ? | 37 + 28 + 39 = 104 #### 104 |
Cheryl starts with 8 Skittles . Kathryn gives Cheryl 89 more . How many Skittles does Cheryl end with ? | 8 + 89 = 97 #### 97 |
Sara had 4 quarters and 8 dimes in her bank . Her sister borrowed 4 dimes . How many dimes does Sara have now ? | 8 - 4 = 4 #### 4 |
Mrs. Hilt impressed 2436 fans at the basketball game on Friday . If the fans were seated in equal groups on 3 sets of bleachers , how many fans were on each set ? | 2436 / 3 = 812 #### 812 |
Uncle Dave bought 143 ice cream sandwiches . If he wants to give them to his 11 hungry nieces , how many can each niece get ? | 143 / 11 = 13 #### 13 |
Luke was helping the cafeteria workers pick up lunch trays , but he could only carry 4 trays at a time . If he had to pick up 20 trays from one table and 16 trays from another , how many trips will he make ? | ( 20 + 16 ) / 4 = 9 #### 9 |
Dan picked 9 limes and gave Sara 4 of the limes . How many limes does Dan have now ? | 9 - 4 = 5 #### 5 |
Mary has 9 yellow marbles Joan has 3 yellow marbles . How many yellow marbles do they have in all ? | 9 + 3 = 12 #### 12 |
There are 5 flowers and 3 bees . How many fewer bees are there than flowers ? | 5 - 3 = 2 #### 2 |
At a restaurant each adult meal costs $ 7 and kids eat free . If a group of 13 people came in and 9 were kids , how much would it cost for the group to eat ? | 7 * ( 13 - 9 ) = 28 #### 28 |
Megan was selling her necklaces at a garage sale . She sold 7 bead necklaces and 3 gem stone necklaces . If each necklace cost 9 dollars , how much money did she earn ? | 9 * ( 7 + 3 ) = 90 #### 90 |
Joan has 8 orange balloons but lost 2 of them . How many orange balloons does Joan have now ? | 8 - 2 = 6 #### 6 |
Larry starts with 91 cards . 17 are eaten by a hippopotamus . How many cards does Larry end with ? | 91 - 17 = 74 #### 74 |
There are 33 oak trees currently in the park . Park workers had to cut down 18 oak trees that were damaged . How many oak trees will be in the park when the workers are finished ? | 33 - 18 = 15 #### 15 |
The Sumata family took a 5 day vacation by car . Each day they drove 250 miles . How many total miles did they drive ? | 5 * 250 = 1250 #### 1250 |
If Stephanie ran for 3 hours at 5 miles per hour . How far did Stephanie go ? | 3 * 5 = 15 #### 15 |
2 stockbrokers are making cold calls to potential customers regarding a hot IPO . One of the brokers is able to get a new client every 0.12 hour , and the other is able to get a new client every 0.2 hour . At what rate , in clients per hour , are the new clients being acquired when both are working ? | 1.0 / 0.12 + 1.0 / 0.2 = 13 #### 13 |
There are 41 crayons and 26 pencils in the drawer . Sam placed 12 crayons in the drawer . How many crayons are now there in total ? | 41 + 12 = 53 #### 53 |
Paul made 68 dollars mowing lawns and 13 dollars weed eating . If he only spent 9 dollar a week , how long would the money last him ? | ( 68 + 13 ) / 9 = 9 #### 9 |
Each cup contains 8 ounces . How many ounces are in 33 cups ? | 8 * 33 = 264 #### 264 |
Dan has $ 3 . He bought a candy bar for $ 1 . How much money is left ? | 3 - 1 = 2 #### 2 |
Sally earns $ 12.5 an hour cleaning houses . If she works for 12 hours , how much money will she make ? | 12.5 * 12 = 150 #### 150 |
Haley picked 28 carrots from her garden . If she threw out 11 of them and then picked 9 more the next day , how many carrots would she have total ? | 28 + 9 - 11 = 26 #### 26 |
Ted has 15 candy bars . He wants to put them into 5 bags so there are the same number of candy bars in each bag . How many candy bars should go in each bag ? | 15 / 5 = 3 #### 3 |
A neighborhood grocer sells a mix of chocolate and carob candy . The chocolate cost 2.7 dollars a pound and the carob costs 2.55 dollars a pound . If 20 pounds of the chocolate and 40 pounds of the carob candy are used , what is the cost per pound of the mixture in dollars ? | ( 2.7 * 20 + 2.55 * 40 ) / ( 20 + 40 ) = 2.6 #### 2.6 |
Sally had 760 quarters in her bank . She spent 418 of her quarters . How many quarters does she have now ? | 760 - 418 = 342 #### 342 |
April 's discount flowers was having a sale where each flower was 3 dollars . If Zoe bought 8 roses and 2 daisies , how much did she spend ? | 3 * ( 8 + 2 ) = 30 #### 30 |
Mike joined his school 's band . He bought a trumpet for $ 145.16 , and a song book which was $ 5.84 . How much did Mike spend at the music store ? | 145.16 + 5.84 = 151 #### 151 |
Carla has some marbles . She bought 489 marbles . Now she has 2778 marbles all together . How many did she start with ? | 2778 - 489 = 2289 #### 2289 |
Luke was trying to expand his game collection . He bought 2 games from a friend and bought 2 more at a garage sale . If 2 of the games did n't work , how many good games did he end up with ? | 2 + 2 - 2 = 2 #### 2 |
Haley had 27 music files and 42 video files on her flash drive . If she deleted 11 of the files , how many files were still on her flash drive ? | 27 + 42 - 11 = 58 #### 58 |
Charles has 4 apples . Jessica gives Charles 39 more . How many apples does Charles have in all ? | 4 + 39 = 43 #### 43 |
Kevin starts with 7 cards . He finds another 47 . How many cards does Kevin end with ? | 7 + 47 = 54 #### 54 |
Melanie picked 4 plums , Dan picked 9 plums , and Sally picked 3 plums from the plum tree . How many plums were picked in total ? | 4 + 9 + 3 = 16 #### 16 |
A restaurant served 6 cakes during lunch and 9 during dinner today . How many cakes were served today ? | 6 + 9 = 15 #### 15 |
Dan has 64 violet marbles , he gave Mary 14 of the marbles . How many violet marbles does he now have ? | 64 - 14 = 50 #### 50 |
Sara grew 4 onions , Sally grew 5 onions , and Fred grew 9 onions . How many onions did they grow in all ? | 4 + 5 + 9 = 18 #### 18 |
End of preview. Expand
in Dataset Viewer.
MAWPS : A Math Word Problem Repository
- Paper: https://aclanthology.org/N16-1136/
- Github: https://github.com/sroy9/mawps
Adapted from https://huggingface.co/datasets/mwpt5/MAWPS
Processed with the following code:
def process_row(row):
# Create placeholder-to-actual mapping
placeholder_map = [(f"N_{i:02}", actual) for i, actual in enumerate(row['Numbers'].split())]
try:
# Process placeholders and replacements
for placeholder, replacement in placeholder_map:
replacement_value = float(replacement)
# Convert to integer if it is a whole number, otherwise round to 2 decimal places
replacement = str(int(replacement_value)) if replacement_value.is_integer() else str(round(replacement_value, 2))
# Update Question and Equation with the new replacement value
row['Question'] = row['Question'].strip().replace(placeholder, replacement)
row['Equation'] = row['Equation'].strip().replace(placeholder, replacement)
# Process Answer
answer_value = float(row['Answer'])
row['Answer'] = str(int(answer_value)) if answer_value.is_integer() else str(round(answer_value, 2))
# Format the final answer string
row['Answer'] = f"{row['Equation']} = {row['Answer']} #### {row['Answer']}"
except ValueError as e:
print(f"ValueError: {e}")
except Exception as e:
print(f"Unexpected error: {e}")
return row
To format the answers, I used a similar formatting style to GSM8K's answers, which allows for easy parsing for evaluation.
- Downloads last month
- 120