diff --git "a/all/NumGLUE_Type_8_crowdsourced.json" "b/all/NumGLUE_Type_8_crowdsourced.json" new file mode 100644--- /dev/null +++ "b/all/NumGLUE_Type_8_crowdsourced.json" @@ -0,0 +1,7442 @@ +{ + "Source": "", + "Categories": [], + "Instances": [ + { + "Input": "Soft drinks are on sale at the grocery store for 2.99 dollars for a 12 pack. How much would each can of soft drink cost if purchased individually , in dollars?", + "Output Program": [ + "total_amount = 2.99\nno_pack = 12\n\nprice_per_pack = total_amount / no_pack\n\nprint(round(price_per_pack, 2))" + ], + "Output Answer": [ + "0.25" + ], + "split": "train" + }, + { + "Input": "Oliver is at the library helping put away books. There are 46.0 book to put away but a librarian adds 10.0 to the pile, and asks Oliver to arrange them in shelves. If he can fit 4.0 books on a shelf, how many shelves will he need.", + "Output Program": [ + "books_before = 46\nbooks_added = 10\n\nbooks_per_shelf = 4\n\nno_shelves = (books_before + books_added) / books_per_shelf\n\nprint(no_shelves)" + ], + "Output Answer": [ + "14" + ], + "split": "train" + }, + { + "Input": "A dealer has some hard candy worth 2 dollars a pound and some worth 3 dollars a pound. He wishes to make a mixture of 80 pounds that he can sell for 2.20 dollars per pound. How many pounds of 3 dollars a pound should he use?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 80\nb = 2\nc = 3\nd = 2.20*80\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "16" + ], + "split": "train" + }, + { + "Input": "A cashier has a total of 126 bills , made up of 5-dollar bills and 10-dollar bills. The total value of the money is 840 dollars. How many 5-dollar bills does he have?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 126\nb = 10\nc = 5\nd = 840\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "84" + ], + "split": "train" + }, + { + "Input": "Billy has 62.0 crayons. Jane has 52.0 crayons. How many do they have together.", + "Output Program": [ + "billy = 62\njane = 52\n\ntotal = billy + jane\n\nprint(total)" + ], + "Output Answer": [ + "114" + ], + "split": "train" + }, + { + "Input": "The owner of the Most Amazing Circus was counting the money from one day 's ticket sales. He knew that a total of 522 tickets were sold. Adult tickets cost 15 dollars each and children 's tickets cost 8 dollars each. If the total receipts for the day were 5086.00 dollars , how many adult tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 522\nb = 8\nc = 15\nd = 5086\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "130" + ], + "split": "train" + }, + { + "Input": "Mrs. Sheridan has 11.0 cats. She bought 43.0 more. How many cats does she have now.", + "Output Program": [ + "cats = 11\nbought = 43\n\ntotal = cats + bought\n\nprint(total)" + ], + "Output Answer": [ + "54" + ], + "split": "train" + }, + { + "Input": "Red cards are worth 3 credits , while blue cards are worth 5 credits. You need any combination of 20 cards to play a game. With 84 credits to buy cards , how many red cards will you have when you play?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 20\nb = 5\nc = 3\nd = 84\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "4 pencils and 5 pens cost a total of 2.00 dollars. 3 pencils and 4 pens cost 1.58 dollars. Find the cost of a pencil in dollars.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 2\na_x = 4\na_y = 5\n\nb = 1.58\nb_x = 3\nb_y = 4\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[0], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "0.1" + ], + "split": "train" + }, + { + "Input": "Jenny sold 24.0 boxes of Trefoils. Each box has 8.0 packs. How many packs did she sell in total.", + "Output Program": [ + "boxes = 24\npacks = 8\n\ntrefoils = boxes * packs\n\nprint(trefoils)" + ], + "Output Answer": [ + "192" + ], + "split": "train" + }, + { + "Input": "I walk in every 1.0 minute 3.0 miles. I walked 15.0 miles. How many minutes did it take me .", + "Output Program": [ + "speed = 3/1\nmiles = 15\n\nminutes = int(miles / speed)\n\nprint(minutes)" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "A merchant wants to combine peanuts selling 2.40 dollars per pound and cashews selling for 6.00 dollars per pound to form 60 pounds which will sell at 3.00 dollars per pound. What amount of cashews must be used?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 60\nb = 2.40\nc = 6\nd = 3*60\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "7 audio cassettes and 3 video cassettes cost rs 1110 , while 5 audio cassettes and 4 video cassettes cost rs 1350. Find the cost of a video cassette.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 1110\na_x = 7\na_y = 3\n\nb = 1350\nb_x = 5\nb_y = 4\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "300" + ], + "split": "train" + }, + { + "Input": "A local bus tour sold 65 tickets. Senior citizen tickets cost 10 dollars and regular tickets cost 15 dollars. The total sales were 855 dollars. How many regular tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 65\nb = 10\nc = 15\nd = 855\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "41" + ], + "split": "train" + }, + { + "Input": "The sum of 2 numbers is 15. 3 times one of the numbers is 11 less than 5 times the other. What is the smaller number?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([x + y - 15, 3*x - (5*(15-x) - 11)], (x, y)))[0]\n\nprint(min(answer))" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "Rita received a 70 dollars gift card for a coffee store. She used it in buying some coffee that cost 8.58 dollars per pound. After buying the coffee , she had 35.68 dollars left on her card. How many pounds of coffee did she buy?", + "Output Program": [ + "dollars = 70\nper_pound = 8.58\nused = dollars - 35.68\n\ntotal_pounds = int(used/per_pound)\n\nprint(total_pounds)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "We ordered 21.0 pizzas. There are 8.0 people who share the pizzas. How many slices does each person get.", + "Output Program": [ + "pizzas = 21\nslices = 8\n\naverage = pizzas / slices\n\nprint(average)" + ], + "Output Answer": [ + "2.625" + ], + "split": "train" + }, + { + "Input": "Melanie, Benny, Sandy, and Jessica each have 9 dozen Pokemon cards. How many Pokemon cards do they have in all ?", + "Output Program": [ + "dozens_pokemon = 9\ntotal_in_dozen = 12\nno_people = 4\n\ntotal_pokemon = dozens_pokemon * total_in_dozen * no_people\n\nprint(total_pokemon)" + ], + "Output Answer": [ + "432" + ], + "split": "train" + }, + { + "Input": "Geraldine had 2186.0 dolls and Jazmin had 1209.0 dolls. How many dolls does Geraldine have more than Jazmin.", + "Output Program": [ + "geraldine_dolls = 2186\njasemine_dolls = 1209\n\ngeraldine_more_jasemine = geraldine_dolls - jasemine_dolls\n\nprint(geraldine_more_jasemine)" + ], + "Output Answer": [ + "977" + ], + "split": "train" + }, + { + "Input": "Sam gives 5.0 of his 6.0 yellow balloons to Fred, and Mary has 7.0 yellow balloons . The balloons cost 9.0 dollars . How many yellow balloons do Sam and Mary have in total.", + "Output Program": [ + "sam_yellow_balloons = 6\nsam_gave_fred = 5\nballoon_cost = 9\nmary_yellow_balloons = 7\n\nsam_mary_yellow_balloons = (sam_yellow_balloons - sam_gave_fred) + mary_yellow_balloons\n\nprint(sam_mary_yellow_balloons)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "Freeport McMoran projects the world grain supply will be 1800000 metric tons and the supply will be only 0.75 of the world grain demand. What will the world grain demand be?", + "Output Program": [ + "grain_supply = 1800000\nsupply_fraction = 0.75\n\ndemand = grain_supply / supply_fraction\n\nprint(demand)" + ], + "Output Answer": [ + "2400000" + ], + "split": "train" + }, + { + "Input": "There are 14240.0 shelves in a library. If each shelf has 8 books on it, how many books does the library have .", + "Output Program": [ + "no_shelves = 14240\nbooks_per_shelf = 8\n\ntotal_books = no_shelves * books_per_shelf\n\nprint(total_books)" + ], + "Output Answer": [ + "113920" + ], + "split": "train" + }, + { + "Input": "A baseball team has home games on Wednesday and Saturday. The two games together earn 5,182.50 dollars for the team. Wednesdays game generates 142.50 dollars less than Saturdays game. How much money was taken in at Saturday 's game?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = saturday game\nx = Symbol('x')\neq = Eq((x-142.5)+x, 5182.5)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "2662.5" + ], + "split": "train" + }, + { + "Input": "A car traveled 715 kilometers in 11 hours. What was its average speed?", + "Output Program": [ + "no_kilometers = 715\nno_hours = 11\n\naverage_speed = no_kilometers / no_hours\n\nprint(average_speed)" + ], + "Output Answer": [ + "65" + ], + "split": "train" + }, + { + "Input": "During 2005 major league baseball season , the Chicago White Sox played 162 games. They won 36 more than they lost. How many games did they win ?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of win games\nx = Symbol('x')\neq = Eq((x-36)+x, 162)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "99" + ], + "split": "train" + }, + { + "Input": "Honda day shift produced 4 times as much as second shift. The total production for the month was 5,500 cars. How many did the second shift produce?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = second shift production\nx = Symbol('x')\neq = Eq((x*4)+x, 5500)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "1100" + ], + "split": "train" + }, + { + "Input": "Sandy sold half of her comic books and then bought 6 more. She now has 13. How many did she begin with ?", + "Output Program": [ + "added_books = 6\ntotal_books = 13\n\nbooks_before = (total_books - added_books) * 2\n\nprint(books_before)" + ], + "Output Answer": [ + "14" + ], + "split": "train" + }, + { + "Input": "Mike picked 7.0 apples , Nancy ate 3.0 apples , and Keith picked 6.0 apples and 4.0 pears , at the farm . How many apples were left .", + "Output Program": [ + "mike_apples = 7\nnancy_ate_apples = 3\nkeith_apples = 6\nkeith_pears = 4\n\nremaining_apples = mike_apples - nancy_ate_apples + keith_apples\n\nprint(remaining_apples)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "3.0 cars with 63.0 people each are going to the zoo. How many people are going to the zoo.", + "Output Program": [ + "no_cars = 3\npeople_per_car = 63\n\ntotal_people = no_cars * people_per_car\n\nprint(total_people)" + ], + "Output Answer": [ + "189" + ], + "split": "train" + }, + { + "Input": "Sara and Jim both decided to save some money each week. Sara has already saved 4100 dollars , and she plans to save 10 dollars a week. Jim plans to save 15 dollars a week. In how many weeks will Jim and Sara have saved the same amount?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of weeks\nx = Symbol('x')\neq = Eq(4100+(10*x), (15*x))\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "820" + ], + "split": "train" + }, + { + "Input": "0.20 of a number decreased by 4 is equal to 6. Find the number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\nx = Symbol('x')\n\nresult = solve(0.20*x -4 - 6)[0]\n\nprint(int(result))", + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq((x*0.20)-4, 6)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "Megan had 217 markers. Robert gave her 109 more markers. How many markers does Megan have altogether?", + "Output Program": [ + "markers_originally_owned = 217\nfrom_robert = 109\n\ntotal = markers_originally_owned + from_robert\n\nprint(total)" + ], + "Output Answer": [ + "326" + ], + "split": "train" + }, + { + "Input": "Mike picked 7.0 apples, Nancy picked 3.0 apples, but Keith ate 6.0 apples and 4.0 pears, at the farm. How many apples are left.", + "Output Program": [ + "pickedApples_mike = 7\npickedApples_nancy = 3\neatenApples_keith = 6\n\napples_left = (pickedApples_mike + pickedApples_nancy) - eatenApples_keith\n\nprint(apples_left)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "An oil pipe in the sea broke. Before engineers started to fix the pipe, 6,522 liters of oil leaked into the water. While the engineers worked, the pipe leaked 5,165 more liters of oil. In all, how many liters of oil leaked into the water?", + "Output Program": [ + "leaked_before = 6522\nleaked_after = 5165\n\ntotal_leaked = leaked_before + leaked_after\n\nprint(total_leaked)" + ], + "Output Answer": [ + "11687" + ], + "split": "train" + }, + { + "Input": "In a school, there are 542.0 girls and 387.0 boys. How many more girls are there compared to boys in that school.", + "Output Program": [ + "no_girls = 542\nno_boys = 387\n\ngirls_more_boys = abs(no_girls - no_boys)\n\nprint(girls_more_boys)" + ], + "Output Answer": [ + "155" + ], + "split": "train" + }, + { + "Input": "Benny bought 7 dozen eggs from the grocery store to bake some cakes. How many eggs did Benny buy ?", + "Output Program": [ + "dozens_eggs = 7\nno_in_dozen = 12\n\nno_eggs = dozens_eggs * no_in_dozen\n\nprint(no_eggs)" + ], + "Output Answer": [ + "84" + ], + "split": "train" + }, + { + "Input": "Mike picked 32.0 limes, and Alyssa ate 25.0 limes . Tom picked 12.0 plums . How many limes were left.", + "Output Program": [ + "mike_limes = 32\nate_alyssa_limes = 25\ntom_plums = 12\n\nremaining_limes = mike_limes - ate_alyssa_limes\n\nprint(remaining_limes)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "For his long distance phone calls , John pays a 5 dollars monthly fee plus 25 cents per minute. Last month , John 's long distance bill was 12.02 dollars. For how many minutes was John billed?", + "Output Program": [ + "monthly_charge = 5\ncent_per_min = 25\n\ndollar_per_min = cent_per_min / 100\n\ntotal_bill = 12.02\n\ntotal_min = (total_bill - monthly_charge) / dollar_per_min\n\nprint(total_min)" + ], + "Output Answer": [ + "28.08" + ], + "split": "train" + }, + { + "Input": "1 blend of coffee sells for 9.00 dollars per pound and another blend sells for 8.00 dollars per pound. You want to make a 20 pound blend that sells for 8.40 dollars per pound. How many pounds of the 8 dollars per pound coffee do you need?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# coffee_8 = coffee which sells at 8 dollar, coffee_9 = coffee which sells at 9 dollar\nc8, c9 = symbols('coffee_8, coffee_9')\n\neq1 = Eq((c8+c9), 20)\neq2 = Eq(8*c8+9*c9, 20*8.40)\n\nanswer_dict = solve((eq1, eq2), (c8, c9))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['coffee_8'])" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Albert has 2.0 snakes. The garden snake is 10.0 inches long. The boa constrictor is 7.0 times shorter than the garden snake. How long is the boa constrictor.", + "Output Program": [ + "garden_snake = 10\nboa_constrictor_shorter_garden_snake = 7\n\nboa_constrictor = garden_snake / boa_constrictor_shorter_garden_snake\n\nprint(boa_constrictor)" + ], + "Output Answer": [ + "1.428571429" + ], + "split": "train" + }, + { + "Input": "An airplane has a total of 387 seats. The number of coach class seats is 2 more than 4 times the number of first-class seats. How many first class seats are there on the plane?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of coach class seat\nx = Symbol('x')\neq = Eq(((x*4)+2)+x, 387)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "77" + ], + "split": "train" + }, + { + "Input": "Willy has 1400 crayons. Lucy has 290 crayons. How many more crayons does Willy have then Lucy?", + "Output Program": [ + "willy_crayons = 1400\nlucy_crayons = 290\n\nwilly_more_lucy = abs(willy_crayons - lucy_crayons)\n\nprint(willy_more_lucy)" + ], + "Output Answer": [ + "1110" + ], + "split": "train" + }, + { + "Input": "The total number of Democrats and Republicans in the House of Representatives was 434. There were 30 more Republicans then Democrats. How many Republicans were there in the Senate?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of republician\nx = Symbol('x')\neq = Eq((x-30)+x, 434)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "232" + ], + "split": "train" + }, + { + "Input": "The town of Milburg has 5256.0 grown-ups and children. 2987.0 are children. How many adults live in Milburg.", + "Output Program": [ + "total = 5256\nno_children = 2987\n\nno_grownups = total - no_children\n\nprint(no_grownups)" + ], + "Output Answer": [ + "2269" + ], + "split": "train" + }, + { + "Input": "Martha has 3.0 children and wants each of them to have 18.0 small cakes. How many cakes would she need to buy.", + "Output Program": [ + "no_children = 3\ncakes_per_child = 6\n\ntotal_cakes = no_children * cakes_per_child\n\nprint(total_cakes)" + ], + "Output Answer": [ + "54" + ], + "split": "train" + }, + { + "Input": "If 120 lollipops cost 90 dollars , how much does 1 lollipop cost , in dollars?", + "Output Program": [ + "no_lollipops = 120\ntotal_dollar = 90\n\ndollar_per_lollipop = total_dollar / no_lollipops\n\nprint(dollar_per_lollipop)" + ], + "Output Answer": [ + "0.75" + ], + "split": "train" + }, + { + "Input": "Martha starts with 76.0 cards. She gives 3.0 more to Emily. How many cards does Martha end with.", + "Output Program": [ + "martha_cards = 76\ngave_emily_cards = 3\n\nremaining_cards = martha_cards - gave_emily_cards\n\nprint(remaining_cards)" + ], + "Output Answer": [ + "73" + ], + "split": "train" + }, + { + "Input": "A physician 's assistant measures a child and finds that his height is 41.5 inches. At his last visit to the doctor's office , the child was 38.5 inches tall. How much did the child grow , in inches?", + "Output Program": [ + "current_height = 41.5\nlast_height = 38.5\n\nheight_difference = abs(current_height - last_height)\n\nprint(height_difference)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Sam, Dan, Tom, and Keith each have 14 Pokemon cards. How many Pokemon cards do they have in all ?", + "Output Program": [ + "no_people = 4\npokemon_cards_per_person = 14\n\ntotal_pokemon_cards = no_people * pokemon_cards_per_person\n\nprint(total_pokemon_cards)" + ], + "Output Answer": [ + "56" + ], + "split": "train" + }, + { + "Input": "The total cost of a shirt and a sweater is 80.34 dollars. If the price of the shirt is 7.43 dollars less than the sweater , what was the price of the shirt , in dollars?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = price of shirt\nx = Symbol('x')\neq = Eq((x+7.43)+x, 80.34)\n\nanswer = solve(eq)\n\nprint(round(answer[0], 2))" + ], + "Output Answer": [ + "36.46" + ], + "split": "train" + }, + { + "Input": "Latoya purchased a prepaid phone card for 30 dollars. Long distance calls cost 16 cents a minute using this card. Latoya used her card only once to make a long distance call. If the remaining credit on her card is 26.48 dollars , how many minutes did her call last?", + "Output Program": [ + "total_prepaid = 30\ncent_per_min = 16\n\ndollar_per_min = cent_per_min / 100\n\nremaining_prepaid = 26.48\n\nmins_used = (total_prepaid - remaining_prepaid) / dollar_per_min\n\nprint(round(mins_used, 0))" + ], + "Output Answer": [ + "22" + ], + "split": "train" + }, + { + "Input": "Brenda\u2019s mother made cookies for 5.0. If she prepared 35.0 cookies, and each of them had the same number of cookies, how many did each of them have.", + "Output Program": [ + "no_people = 5\nno_cookies = 35\n\ncookie_per_person = no_cookies / no_people\n\nprint(cookie_per_person)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "A washer-dryer combination costs 1,200 dollars. If the washer costs 220 dollars more than the dryer , How much does the dryer cost?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = dryer cost\nx = Symbol('x')\neq = Eq((x+220)+x, 1200)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "490" + ], + "split": "train" + }, + { + "Input": "Mika had 20.0 stickers. She bought 26.0 stickers from a store in the mall and got 20.0 stickers for her birthday. Then her sister gave her 6.0 stickers and her mother gave her 58.0 stickers to decorate a greeting card. How many stickers does Mika have.", + "Output Program": [ + "available_stickers = 20\nbought_stickers = 26\ngot_stickers_birthday = 20\ngot_stickers_sister = 6\ngot_stickers_mother = 58\n\ntotal_stickers = available_stickers + bought_stickers + got_stickers_birthday + got_stickers_sister + got_stickers_mother\n\nprint(total_stickers)" + ], + "Output Answer": [ + "130" + ], + "split": "train" + }, + { + "Input": "White t-shirts can be purchased in packages of 6.0. If Mom wants to buy 71.0 t-shirts, how many packages of 6.0 t-shirts does she have to buy.", + "Output Program": [ + "tshirt_per_package = 6\ntotal_tshirts = 71\n\nno_packages = total_tshirts / tshirt_per_package\n\nprint(no_packages)" + ], + "Output Answer": [ + "11.83333333" + ], + "split": "train" + }, + { + "Input": "Lucy has 212.0 fish. Then she buys 280.0 more fish. How many fish does she have now.", + "Output Program": [ + "available_fish = 212\nbought_fish = 280\n\ntotal_fish = available_fish + bought_fish\n\nprint(total_fish)" + ], + "Output Answer": [ + "492" + ], + "split": "train" + }, + { + "Input": "I want to put 20.0 gallons of gas into 5.0 gallon gas cans. How many gas cans do I need.", + "Output Program": [ + "total_gallons = 20\ngallon_per_can = 5\n\nno_cans = total_gallons / gallon_per_can\n\nprint(no_cans)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Paul got 479.0 crayons for his birthday. At the end of the school year he got another 134.0 crayons. How many crayons does Paul now have.", + "Output Program": [ + "available_crayons = 479\ngot_crayons = 134\n\ntotal_crayons = available_crayons + got_crayons\n\nprint(total_crayons)" + ], + "Output Answer": [ + "613" + ], + "split": "train" + }, + { + "Input": "Seven times a number is the same as 12 more than 3 times the number. Find the number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq((7*x), 3*x+12)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Mike found 6.0 seashells and 3.0 starfish , then he found 4.0 more seashells. How many seashells did Mike find .", + "Output Program": [ + "available_seashells = 6\navailable_starfish = 3\nadded_seashells = 4\n\ntotal_seashells = available_seashells + added_seashells\n\nprint(total_seashells)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "Mrs. Hilt ate 5.0 apples. How many apples per hour in average does she eat, if she ate the apples in 3.0 hours.", + "Output Program": [ + "total_apples = 5\ntotal_hours = 3\n\napples_per_hour = total_apples / total_hours\n\nprint(apples_per_hour)" + ], + "Output Answer": [ + "1.66666666699999" + ], + "split": "train" + }, + { + "Input": "There are 45.0 pounds of oranges. Each bag contains 23.0 pounds of oranges. How many bags are there.", + "Output Program": [ + "total_pounds = 45\npound_per_bag = 23\n\nno_bags = total_pounds / pound_per_bag\n\nprint(no_bags)" + ], + "Output Answer": [ + "1.956521739" + ], + "split": "train" + }, + { + "Input": "Melanie has 84 blue marbles. Sandy has 8 times more blue marbles than Melanie. How many dozen blue marbles does Sandy have?", + "Output Program": [ + "melanie_marbles = 84\nsandy_more_melanie = 8\n\nsandy_marbles = melanie_marbles * sandy_more_melanie\n\nno_in_dozen = 12\n\nsandy_marbles_in_dozen = sandy_marbles / no_in_dozen\n\nprint(sandy_marbles_in_dozen)" + ], + "Output Answer": [ + "56" + ], + "split": "train" + }, + { + "Input": "Freeport McMoran projects that in 2010 the world grain supply will be 1800000 metric tons and the supply will be only 0.75 of the world grain demand. What will the world grain demand be in 2010?", + "Output Program": [ + "grain_supply = 1800000\nsupply_fraction = 0.75\n\ndemand = grain_supply / supply_fraction\n\nprint(demand)" + ], + "Output Answer": [ + "2400000" + ], + "split": "train" + }, + { + "Input": "A high school graduating class is made up of 485 students. There are 69 more girls than boys. How many boys are in the class?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of boys\nx = Symbol('x')\neq = Eq((x+69)+x, 485)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "208" + ], + "split": "train" + }, + { + "Input": "There were a total of 7 baseball games a month. The season is played for 2 months. How many baseball games are in a season ?", + "Output Program": [ + "games_per_month = 7\ntotal_months = 2\n\ntotal_games = games_per_month * total_months\n\nprint(total_games)" + ], + "Output Answer": [ + "14" + ], + "split": "train" + }, + { + "Input": "There are 53 maple trees currently in the park. Park workers will plant more maple trees today. When the workers are finished there will be 64 maple trees in the park. How many maple trees did the workers plant today ?", + "Output Program": [ + "available_trees = 53\ntotal_trees = 64\n\nadded_trees = total_trees - available_trees\n\nprint(added_trees)" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "For Monday morning 's staff meeting , Jim bought 2 bags of bagels and 3 packages of cream cheese and paid 12.00 dollars. For Friday 's meeting , he bought 4 bags of bagels and 2 packages of cream cheese and paid 14.00 dollars. How much does a package of cream cheese cost , in dollars?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# bagel = price of 1 bag bagel, cream_cheese = price of 1 bag cream cheese\nb, cc = symbols('bagel, cream_cheese')\n\neq1 = Eq(2*b+3*cc, 12)\neq2 = Eq(4*b+2*cc, 14)\n\nanswer_dict = solve((eq1, eq2), (b, cc))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(float(answer_dict['cream_cheese']))" + ], + "Output Answer": [ + "2.5" + ], + "split": "train" + }, + { + "Input": "A plumber contractor decides to field-test two new pumps. One is rated at 180 gallons per hour and the other at 250 gallons per hour. Over a period of 6 hours , she pumps a total of 1325 gallons. How many hours were used by the 250 gallons per hour pump?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# g180 = number of hour 180 gallons per hour ran, g250 = number of hour 250 gallons per hour ran\ng180, g250 = symbols('g180, g250')\n\neq1 = Eq(g180+g250, 6)\neq2 = Eq(180*g180+250*g250, 1325)\n\nanswer_dict = solve((eq1, eq2), (g180, g250))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(float(answer_dict['g250']))" + ], + "Output Answer": [ + "3.5" + ], + "split": "train" + }, + { + "Input": "A 177-inch pipe is cut into two pieces. One piece is two times the length of the other. Find the lengths of the longer pieces.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = length of longer piece\nx = Symbol('x')\neq = Eq((x/2)+x, 177)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "118" + ], + "split": "train" + }, + { + "Input": "Jane helped her mom prepare fresh lemonade. If each glass needs 2.0 lemons, how many glasses of fresh lemonade can she make if they have 18.0 lemons.", + "Output Program": [ + "lemons_per_glass = 2\ntotal_lemons = 18\n\nno_glasses = total_lemons / lemons_per_glass\n\nprint(no_glasses)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "John is writing an article. The article is limited to 48,000 words. He decides to use two types of font. Large font is 1,800 words per page , small font is 2,400 words per page. He is allowed 21 pages for this article. How many pages are in large font?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# large_fonts = 1800 words per page, small_fonts = 2400 words per page\nlf, sf = symbols('large_fonts, small_fonts')\n\neq1 = Eq(lf+sf, 21)\neq2 = Eq(1800*lf+2400*sf, 48000)\n\nanswer_dict = solve((eq1, eq2), (lf, sf))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['large_fonts'])" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Tiffany was playing a video game and had 43.0 lives. In a hard part of the game, she won 14.0 lives. If she got 27.0 more lives in the next level, how many lives would she have.", + "Output Program": [ + "available_games = 43\nwon_lives = 14\nadded_lives = 27\n\ntotal_lives = available_games + won_lives + added_lives\n\nprint(total_lives)" + ], + "Output Answer": [ + "84" + ], + "split": "train" + }, + { + "Input": "Fred has 10.0 red balloons , Sam has 46.0 red balloons , then Dan destroyed 16.0 red balloons . The balloons cost 10.0 dollars . How many red balloons do they have in all .", + "Output Program": [ + "fred_balloons = 10\nsam_balloons = 46\ndan_destroy_balloons = 16\ncost_per_balloon = 10\n\nremaining_balloons = (fred_balloons + sam_balloons) - dan_destroy_balloons\n\nprint(remaining_balloons)" + ], + "Output Answer": [ + "40" + ], + "split": "train" + }, + { + "Input": "A 68-foot pipe is cut into 2 pieces , one of which is 12 feet less than the other. What is the length of the shorter piece in feet?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = length of shorter pipe\nx = Symbol('x')\neq = Eq((x+12)+x, 68)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "28" + ], + "split": "train" + }, + { + "Input": "Sam found 18 seashells and Mary found 47 seashells on the beach. How many seashells did they find together ?", + "Output Program": [ + "sam_seashells = 18\nmary_seashells = 47\n\ntotal_seashells = sam_seashells + mary_seashells\n\nprint(total_seashells)" + ], + "Output Answer": [ + "65" + ], + "split": "train" + }, + { + "Input": "For homework, Nancy had 17.0 math problems and 15.0 spelling problems. If she can finish 8.0 problems in an hour, how long will it take her to finish all the problems.", + "Output Program": [ + "math_problems = 17\nspelling_problems = 15\n\nproblem_per_hour = 8\n\nno_hours = (math_problems + spelling_problems) / problem_per_hour\n\nprint(no_hours)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "When relatives visit Haley and her family, she and her cousins do origami. If she has 48.0 origami papers to give away to her 6.0 cousins, how many will each receive if she gives everyone the same number of origami papers.", + "Output Program": [ + "total_origami = 48\ntotal_cousins = 6\n\norigami_per_cousiin = total_origami / total_cousins\n\nprint(origami_per_cousiin)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "Mary had 18.0 baseball cards and promised to give Fred 26.0 baseball cards. If Mary buys 40.0 baseball cards, how many will she have left after she gives the promised cards to Fred.", + "Output Program": [ + "mary_baseball_cards = 18\nadded_baseball_cards = 40\ngive_baseball_cards = 26\n\nremaining_baseball_cards = (mary_baseball_cards + added_baseball_cards) - give_baseball_cards\n\nprint(remaining_baseball_cards)" + ], + "Output Answer": [ + "32" + ], + "split": "train" + }, + { + "Input": "Tim and Judy mix two kinds of feed for pedigreed dogs. They wish to make 35 pounds of feed worth 0.36 dollars per pound by mixing one kind worth 0.18 dollars per pound with another worth 0.53 dollars per pound. How many pounds of the cheaper kind should they use in the mix?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# pedigree_1 = pounds of pedigree which cost 0.18, pedigree_2 = pounds of pedigree which cost 0.53\np1, p2 = symbols('pedigree_1, pedigree_2')\n\neq1 = Eq(p1+p2, 35)\neq2 = Eq(0.18*p1+0.53*p2, 35*0.36)\n\nanswer_dict = solve((eq1, eq2), (p1, p2))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['pedigree_1'])" + ], + "Output Answer": [ + "17" + ], + "split": "train" + }, + { + "Input": "Marcus has 210.0 baseball cards. Carter gave him 58.0 more cards. How many baseball cards does Marcus have now.", + "Output Program": [ + "available_cards = 210\nadded_cards = 58\n\ntotal_cards = available_cards + added_cards\n\nprint(total_cards)" + ], + "Output Answer": [ + "268" + ], + "split": "train" + }, + { + "Input": "6.0 students were sitting at each table in the lunchroom. There are 34.0 tables. How many students should sit at each table, if divided evenly.", + "Output Program": [ + "no_tables = 34\nstudent_per_table = 6\n\nevenly_divide = no_tables / student_per_table\n\nprint(evenly_divide)" + ], + "Output Answer": [ + "5.666666667" + ], + "split": "train" + }, + { + "Input": "Bert runs 2 miles every day. How many miles will Bert run in 3 weeks?", + "Output Program": [ + "miles_per_day = 2\nnumber_of_days_in_week = 7\n\nno_weeks = 3\n\ntotal_miles = (miles_per_day * number_of_days_in_week) * no_weeks\n\nprint(total_miles)" + ], + "Output Answer": [ + "42" + ], + "split": "train" + }, + { + "Input": "Find a number so that 10 less than 0.6667 the number is 0.25 the number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = length of shorter pipe\nx = Symbol('x')\neq = Eq((0.6667*x)-10, 0.25*x)\n\nanswer = solve(eq)\n\nprint(round(answer[0], 0))" + ], + "Output Answer": [ + "24" + ], + "split": "train" + }, + { + "Input": "Carol and her mom were picking carrots from their garden. Carol picked 29.0 , and her mother picked 16.0. If they picked another 38.0, how many bad carrots did they have.", + "Output Program": [ + "carol_carrots = 29\nmother_carrots = 16\nadded_carrots = 38\n\ntotal_apples = carol_carrots + mother_carrots + added_carrots\n\nprint(total_apples)" + ], + "Output Answer": [ + "83" + ], + "split": "train" + }, + { + "Input": "Linda has 34.0 candies. She gave Chloe 28.0 candies. How many candies does Linda have left.", + "Output Program": [ + "linda_candies = 34\ngave_candies = 28\n\nremaining_candies = linda_candies - gave_candies\n\nprint(remaining_candies)" + ], + "Output Answer": [ + "6" + ], + "split": "train" + }, + { + "Input": "A dealer has some hard candy worth 2 dollars a pound and some worth 3 dollars a pound. He wishes to make a mixture of 80 pounds that he can sell for 2.20 dollars per pound. How many pounds of cheaper candy should he use?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# dollar_2 = punds of 2 dollar candy, dollar_3 = punds of 3 dollar candy\nd2, d3 = symbols('dollar_2, dollar_3')\n\neq1 = Eq(d2+d3, 80)\neq2 = Eq(2*d2+3*d3, 80*2.2)\n\nanswer_dict = solve((eq1, eq2), (d2, d3))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['dollar_2'])" + ], + "Output Answer": [ + "64" + ], + "split": "train" + }, + { + "Input": "Tim got 3 nickels and 13 dimes for shining shoes, and in his tip jar found 7 dimes and 9 half-dollars. How much money did Tim get?", + "Output Program": [ + "added_no_nickles = 3\nadded_no_dimes = 13\n\navailable_no_dimes = 7\navailable_dollars = 9/2\n\n# price of 1 dime = 10 cents and price of 1 nickle = 5 cents\n\ntotal_cents = (added_no_nickles * 5) + (added_no_dimes * 10) + (available_no_dimes * 10) + (available_dollars * 100)\n\ntotal_dollars = total_cents / 100\n\nprint(total_dollars)" + ], + "Output Answer": [ + "6.65" + ], + "split": "train" + }, + { + "Input": "In 1 day , a store sold 1.6 as many DVDs as CDs. The total number of DVDs and CDs sold that day was 273. How many DVDs were sold?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of DVDs\nx = Symbol('x')\neq = Eq((x/1.6)+x, 273)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "168" + ], + "split": "train" + }, + { + "Input": "A waiter had 36.0 customers to wait on. If 19.0 of the customers left, and then 14.0 of the remaining customers left, how many customers would he have.", + "Output Program": [ + "total_customers = 36\nfirst_customer_left = 19\nsecond_customer_left = 14\n\nremaining_customers = total_customers - first_customer_left - second_customer_left\n\nprint(remaining_customers)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "A candy store wishes to mix 2 types of candy to get 5 pounds of 2 dollars per pound candy. If candy A costs 3.20 dollars per pound and candy B costs 1.70 dollars per pound , how many pounds of candy A should be mixed?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# candy_A = pounds of 3.20 dollar candy, candy_B = pounds of 1.70 dollar candy\ncA, cB = symbols('candy_A, candy_B')\n\neq1 = Eq(cA+cB, 5)\neq2 = Eq(3.20*cA+1.70*cB, 5*2)\n\nanswer_dict = solve((eq1, eq2), (cA, cB))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['candy_A'])" + ], + "Output Answer": [ + "1" + ], + "split": "train" + }, + { + "Input": "Last Saturday, Marie sold 425.0 magazines and newspapers. If she sold 275.0 newspapers, how many magazines did she sell.", + "Output Program": [ + "total_sold = 425\nnewspapers_sold = 275\n\nmagazines_sold = total_sold - newspapers_sold\n\nprint(magazines_sold)" + ], + "Output Answer": [ + "150" + ], + "split": "train" + }, + { + "Input": "A farmer grows only sunflowers and flax on his 240 acre farm. This year he wants to plant 80 more acres of sunflowers than flax. How many acres of flax?does the farmer need to plant?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of flax\nx = Symbol('x')\neq = Eq((x+80)+x, 240)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "80" + ], + "split": "train" + }, + { + "Input": "Mike has 96 muffins, which he needs to box up into dozens. How many boxes does he need?", + "Output Program": [ + "total_muffins = 96\nno_in_dozen = 12\n\nno_box = total_muffins / no_in_dozen\n\nprint(no_box)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "George had 28.0 socks. If he bought 36.0 new ones, and his Dad gave him 4.0 more, how many socks would he have.", + "Output Program": [ + "available_stocks = 28\nbought_stocks = 36\nadded_stocks = 4\n\ntotal_stocks = available_stocks + bought_stocks + added_stocks\n\nprint(total_stocks)" + ], + "Output Answer": [ + "68" + ], + "split": "train" + }, + { + "Input": "Anthony has 56.0 pencils. Anthony gives Kathryn 9.0 pencils. How many pencils does Anthony have in all.", + "Output Program": [ + "anathony_pencils = 56\ngave_pencils = 9\n\nremaining_pencils = anathony_pencils - gave_pencils\n\nprint(remaining_pencils)" + ], + "Output Answer": [ + "47" + ], + "split": "train" + }, + { + "Input": "At a hotel one night , 260 rooms were booked. Some were single rooms and some were double rooms. The single rooms cost 35 dollars each and the double rooms cost 60 dollars. The hotel made 14000 dollars that night. How many double rooms were booked?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# single_rooms = number of single rooms, double_rooms = number of double rooms\nsr, dr = symbols('single_rooms, double_rooms')\n\neq1 = Eq(sr+dr, 260)\neq2 = Eq(35*sr+60*dr, 14000)\n\nanswer_dict = solve((eq1, eq2), (sr, dr))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['double_rooms'])" + ], + "Output Answer": [ + "196" + ], + "split": "train" + }, + { + "Input": "Lizette has 813 stamps. Lizette has 125 more stamps than Minerva. How many stamps does Minerva have?", + "Output Program": [ + "lizette_stamps = 813\nlizette_more_minerva_stamps = 125\n\nminerva_stamps = lizette_stamps - lizette_more_minerva_stamps\n\nprint(minerva_stamps)" + ], + "Output Answer": [ + "688" + ], + "split": "train" + }, + { + "Input": "There were a total of 6 soccer games this year. Jessica missed 4 of the games. How many soccer games did Jessica go to in all ?", + "Output Program": [ + "total_games = 6\nmissed_games = 4\n\nattended_games = total_games - missed_games\n\nprint(attended_games)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Fred grew 38 cantelopes. Tim grew 44 cantelopes. How many cantelopes did they grow in total ?", + "Output Program": [ + "fred_cantelopes = 38\ntim_cantelopes = 44\n\ntotal_cantelopes = fred_cantelopes + tim_cantelopes\n\nprint(total_cantelopes)" + ], + "Output Answer": [ + "82" + ], + "split": "train" + }, + { + "Input": "Fred, Benny, and Jason have 24 crayons all together. If the crayons are equally divided, how many will each person get ?", + "Output Program": [ + "total_crayons = 24\nno_people = 3\n\ncrayons_per_people = total_crayons / no_people\n\nprint(crayons_per_people)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "Mrs. Hilt looked at her car's odometer before a trip. The odometer showed that she had traveled 212.3 miles. When she stopped for lunch, the odometer read 372.0 more then previously. How many miles had she traveled total.", + "Output Program": [ + "already_travelled = 212.3\nadded_travelling = 372\n\ntotal_travelling = already_travelled + added_travelling\n\nprint(total_travelling)" + ], + "Output Answer": [ + "584.3" + ], + "split": "train" + }, + { + "Input": "Craig has 20.0 apples. Judy has 11.0 apples. He gets 7.0 more from Eugene. How many apples will Craig have.", + "Output Program": [ + "craig_apples = 20\njudy_apples = 11\ncraig_added_apples = 7\n\ncraig_total_apples = craig_apples + craig_added_apples\n\nprint(craig_total_apples)" + ], + "Output Answer": [ + "27" + ], + "split": "train" + }, + { + "Input": "An airplane has a total of 387 seats. The number of coach class seats is 2 more than 4 times the number of first-class seats. How many coach class seats are there on the plane?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of first-class seat\nx = Symbol('x')\neq = Eq(((x*4)+2)+x, 387)\n\nanswer = solve(eq)\n\ncoach_seats = (4 * answer[0]) + 2\n\nprint(coach_seats)" + ], + "Output Answer": [ + "310" + ], + "split": "train" + }, + { + "Input": "The sum of 2 numbers is 70. The second is 10 more than 3 times the first. Find the smaller number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaller number\nx = Symbol('x')\neq = Eq(((x*3)+10)+x, 70)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "15" + ], + "split": "train" + }, + { + "Input": "Arthur bakes 115.0 muffins. Arthur baked 12.0 times as many muffins as James. How many muffins did James bake.", + "Output Program": [ + "arthur_muffins = 115\nankur_more_james = 12\n\njames_muffins = arthur_muffins / ankur_more_james\n\nprint(james_muffins)" + ], + "Output Answer": [ + "9.58333333299999" + ], + "split": "train" + }, + { + "Input": "Maria has 45.0 bottles of water in her fridge. If she drank 14.0 of them and her sister drank 8.0, how many bottles are left.", + "Output Program": [ + "total_bottles = 45\nmaria_drank = 14\nsister_drank = 8\n\nremaining_bottles = total_bottles - (maria_drank + sister_drank)\n\nprint(remaining_bottles)" + ], + "Output Answer": [ + "23" + ], + "split": "train" + }, + { + "Input": "Amy had 4.0 music files and 21.0 video files on her flash drive. If she also downloaded 23.0 picture files to it, how many files would exist on her flash drive.", + "Output Program": [ + "music_files = 4\nvideo_files = 21\npicture_files = 23\n\ntotal_files = music_files + video_files + picture_files\n\nprint(total_files)" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "1 number is 3 less than twice another number. The sum of the 2 numbers is 51. What is the smaller number?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaller number\nx = Symbol('x')\neq = Eq(((x*2)-3)+x, 51)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "18" + ], + "split": "train" + }, + { + "Input": "There are 504.0 apples. It takes 4.0 apples to make 1.0 pie. How many pies are there.", + "Output Program": [ + "apples_per_pie = 4\ntotal_apples = 504\n\ntotal_pies = total_apples / apples_per_pie\n\nprint(total_pies)" + ], + "Output Answer": [ + "126" + ], + "split": "train" + }, + { + "Input": "The school is planning a field trip. There are 14.0 students per bus and 2.0 buses. How many seats do the students take up in total.", + "Output Program": [ + "students_per_bus = 14\ntotal_buses = 2\n\ntotal_students = students_per_bus * total_buses\n\nprint(total_students)" + ], + "Output Answer": [ + "28" + ], + "split": "train" + }, + { + "Input": "1 number is 3 less than twice another number. The sum of the 2 numbers is 51. What is the larger number?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaller number\nx = Symbol('x')\neq = Eq(((x*2)-3)+x, 51)\n\nanswer = solve(eq)\n\nlarger_number = (answer[0] * 2) - 3\n\nprint(larger_number)" + ], + "Output Answer": [ + "33" + ], + "split": "train" + }, + { + "Input": "Mrs. Franklin had 58.0 Valentines. Mrs. Franklin needs 16.0 more to give 1.0 Valentine to all of her students. How many students does Mrs. Franklin have.", + "Output Program": [ + "available_valentine = 58\nneeded_more_valentine = 16\n\ntotal_valentines = available_valentine + needed_more_valentine\n\nprint(total_valentines)" + ], + "Output Answer": [ + "74" + ], + "split": "train" + }, + { + "Input": "Mrs. Sheridan has 17.0 cats. Mrs. Sheridan gave away 14.0 cats. How many cats does Mrs. Sheridan have now.", + "Output Program": [ + "total_cats = 17\ngave_cats = 14\n\nremaining_cats = total_cats - gave_cats\n\nprint(remaining_cats)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Benny bought 4 new baseball trading cards to add to his collection. The next day his dog ate half of his collection. There are now only 34 cards left. How many cards did Benny start with ?", + "Output Program": [ + "added_cards = 4\n# dog ate half of the cards, so we need to multiply 2 with the remaining cards\ndog_ate = 2\nremaining_cards = 34\n\noriginal_cards = (remaining_cards * 2) - added_cards\n\nprint(original_cards)" + ], + "Output Answer": [ + "64" + ], + "split": "train" + }, + { + "Input": "Connie had 73 marbles. She gave 70.0 to Juan. How many marbles does Connie have now.", + "Output Program": [ + "connie_marbles = 73\ngave_juan = 70\n\nremaining_marbles = connie_marbles - gave_juan\n\nprint(remaining_marbles)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "0.5 of a number is 2 more than 0.25 of the number. Find the number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq((x*0.5), (x*0.25)+2)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "In fourth grade there were 10.0 students at the start of the year. During the year, 4.0 students were added, and 42.0 new students came to school. How many students were in fourth grade at the end.", + "Output Program": [ + "available_students = 10\nadded_students = 4\nnew_students = 42\n\ntotal_students = available_students + added_students + new_students\n\nprint(total_students)" + ], + "Output Answer": [ + "56" + ], + "split": "train" + }, + { + "Input": "A dealer has some hard candy worth 2.00 dollars a pound and some worth 3.00 dollars a pound. He wishes to make a mixture of 80 pounds that he can sell for 2.20 dollars a pound. How many pounds of 2-dollar candy does he need?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# dollar_2 = pounds of 2 dollar candy, dollar_3 = pounds of 3 dollar candy\nd2, d3 = symbols('dollar_2, dollar_3')\n\neq1 = Eq(d2+d3, 80)\neq2 = Eq(2*d2+3*d3, 80*2.2)\n\nanswer_dict = solve((eq1, eq2), (d2, d3))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['dollar_2'])" + ], + "Output Answer": [ + "64" + ], + "split": "train" + }, + { + "Input": "Northwest Molded molds plastic handles which cost 0.60 dollars per handle to mold. The fixed cost to run the molding machine is 7640 dollars per week. If the company sells the handles for 4.60 dollars each , how many handles must be molded and sold weekly to break even?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of handles that should be molded\nx = Symbol('x')\neq = Eq(x*4.6, (x*0.60)+7640)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "1910" + ], + "split": "train" + }, + { + "Input": "Megan has 93.0 files on her computer. She adds 21.0 more files and then puts all of the files into folders with 8.0 files in each 1.0. How many folders did Megan end up with.", + "Output Program": [ + "available_files = 93\nadded_files = 21\nfiles_per_folder = 8\n\ntotal_folders = (available_files + added_files) / files_per_folder\n\nprint(total_folders)" + ], + "Output Answer": [ + "14.25" + ], + "split": "train" + }, + { + "Input": "24 is divided into two parts such that 7 times the first part added to 5 times the second part makes 146. Find the smaller part.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = larger number\nx = Symbol('x')\neq = Eq(7*x+5*(24-x), 146)\n\nanswer = solve(eq)\n\nsmaller_number = 24 - answer[0]\n\nprint(smaller_number)" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "Luke had 20 stickers. He bought 12 stickers from a store in the mall and got 20 stickers for his birthday. Then Luke gave 5 of the stickers to his sister and used 8 to decorate a greeting card. How many stickers does Luke have left?", + "Output Program": [ + "available_stickers = 20\nbought_stickers = 12\ngot_stickers_birthday = 20\ngave_stickers_sister = 5\nused_stickers_decorate = 8\n\ntotal_stickers = available_stickers + bought_stickers + got_stickers_birthday - gave_stickers_sister - used_stickers_decorate\n\nprint(total_stickers)" + ], + "Output Answer": [ + "39" + ], + "split": "train" + }, + { + "Input": "There are 3.0 stars for 124.0 students. How many students need to share each star.", + "Output Program": [ + "no_stars = 3\nno_students = 124\n\nstudent_per_star = no_students / no_stars\n\nprint(student_per_star)" + ], + "Output Answer": [ + "41.33333333" + ], + "split": "train" + }, + { + "Input": "A pet store has 6.0 bird cages. If each cage has 6.0 parrots and 2.0 parakeets in it, the pet store has ____ birds in total.", + "Output Program": [ + "no_cages = 6\nparrots_per_cage = 6\nparakeets_per_cage = 2\n\ntotal_birds = (parrots_per_cage + parakeets_per_cage) * no_cages\n\nprint(total_birds)" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "X pounds of candy valued at 3.50 dollars per pound is mixed with Y pounds of candy valued at 4.30 dollars per pound to produce 10 pounds of a mixture selling for 4 dollars per pound. Find Y", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# candy_X = x pounds of candy which cost 3.50 dollar, candy_Y = y pounds of candy which cost 4.3 dollar\ncX, cY = symbols('candy_X, candy_Y')\n\neq1 = Eq(cX+cY, 10)\neq2 = Eq(3.50*cX+4.3*cY, 10*4)\n\nanswer_dict = solve((eq1, eq2), (cX, cY))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['candy_Y'])" + ], + "Output Answer": [ + "6.25" + ], + "split": "train" + }, + { + "Input": "Dan has 29.0 violet balloons. Dan has 7.0 times more violet balloons than Tim. How many violet balloons does Tim have .", + "Output Program": [ + "dan_balloons = 29\ndan_more_tim_balloons = 7\n\ntim_balloons = dan_balloons / dan_more_tim_balloons\n\nprint(tim_balloons)" + ], + "Output Answer": [ + "4.142857143" + ], + "split": "train" + }, + { + "Input": "Virginia starts with 96.0 eggs. Amy gives her 3.0 more. How many eggs does Virginia end with.", + "Output Program": [ + "no_eggs = 96\nadded_eggs = 3\n\ntotal_eggs = no_eggs + added_eggs\n\nprint(total_eggs)" + ], + "Output Answer": [ + "99" + ], + "split": "test" + }, + { + "Input": "Charlie has 31.0 snowballs. Lucy has 19.0 less snowballs than him. How many does she have.", + "Output Program": [ + "charlie_snowballs = 31\nlucy_less_charlie_snowballs = 19\n\nlucy_snowballs = charlie_snowballs - lucy_less_charlie_snowballs\n\nprint(lucy_snowballs)" + ], + "Output Answer": [ + "12" + ], + "split": "test" + }, + { + "Input": "Yuri has a board that 98 inches long. He wishes to cut the board into 2 pieces so that one piece will be 10 inches longer than the other. What will the length of the longer piece be in inches?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = larger number\nx = Symbol('x')\neq = Eq((x-10)+x, 98)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "54" + ], + "split": "test" + }, + { + "Input": "Roger has 95.0 candies. He gets 3.0 more from Stephanie. How many candies will Roger have.", + "Output Program": [ + "roger_candies = 95\nadded_candies = 3\n\ntotal_candies = roger_candies + added_candies\n\nprint(total_candies)" + ], + "Output Answer": [ + "98" + ], + "split": "test" + }, + { + "Input": "Sandy sold lemonade in her neighborhood. She got 17 half-dollars on Saturday and 6 half-dollars on Sunday. What amount of money did Sandy receive?", + "Output Program": [ + "saturday_amount = 17\nsunday_amount = 6\nhalf_dollars = 1/2\n\ntotal_amount = (saturday_amount + sunday_amount) * half_dollars\n\nprint(total_amount)" + ], + "Output Answer": [ + "11.5" + ], + "split": "test" + }, + { + "Input": "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 ?", + "Output Program": [ + "alyssa_balloons = 37\nsandy_balloons = 28\nsally_balloons = 39\n\ntotal_balloons = alyssa_balloons + sandy_balloons + sally_balloons\n\nprint(total_balloons)" + ], + "Output Answer": [ + "104" + ], + "split": "test" + }, + { + "Input": "Sally has 6 blue balloons. Fred has 3 times more blue balloons than Sally. How many blue balloons does Fred have now ?", + "Output Program": [ + "sally_balloon = 6\nfred_more_sally = 3\n\nfred_balloons = sally_balloon * fred_more_sally\n\nprint(fred_balloons)" + ], + "Output Answer": [ + "18" + ], + "split": "test" + }, + { + "Input": "The sum of 20 and a number is 30.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq(20+x, 30)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "10" + ], + "split": "test" + }, + { + "Input": "There were 42 people. There were twice as many children as adults. How many children attended?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of children\nx = Symbol('x')\neq = Eq((x/2)+x, 42)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "28" + ], + "split": "test" + }, + { + "Input": "Rose has 9.0 apples and 12 erasers. Her 3.0 friends help her count her objects. How many total objects does Rose have.", + "Output Program": [ + "rose_apples = 9\nrose_erasers = 12\n\ntotal_rose_objects = rose_apples + rose_erasers\n\nprint(total_rose_objects)" + ], + "Output Answer": [ + "21" + ], + "split": "test" + }, + { + "Input": "532.0 people are watching a movie in a theater. There are 750.0 seats free. How many seats are there in the theater.", + "Output Program": [ + "people_available = 532\nfree_seats = 750\n\ntotal_seats = people_available + free_seats\n\nprint(total_seats)" + ], + "Output Answer": [ + "1282" + ], + "split": "test" + }, + { + "Input": "Sam has 110 books. Joan has 102 books. How many books do they have together ?", + "Output Program": [ + "sam_books = 110\njoan_books = 102\n\ntotal_books = sam_books + joan_books\n\nprint(total_books)" + ], + "Output Answer": [ + "212" + ], + "split": "test" + }, + { + "Input": "2 high speed trains are 380 miles apart and traveling toward each other. They meet in 4 hours. If one train is 15 miles per hour faster than the other , find the speed of the slower train in miles per hour.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\ndistance = 380 # miles\ntime = 4 # hours\n\n# x = speed of slowest train\nx = Symbol('x')\n# speed = distancce / time and both the train travel in opposite direction, so resultant speed will be addition of both the train\neq = Eq(x+(x+15), distance/time)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "40" + ], + "split": "test" + }, + { + "Input": "Luke was trying to expand his game collection. He bought 2.0 games from a friend, 2.0 from another friend and bought 2.0 more at a garage sale. If all the games were fine,, how many good games did he end up with.", + "Output Program": [ + "games_bought_games_first_friend = 2\ngames_bought_games_second_friend = 2\ngames_bought_garage_sale = 2\n\ntotal_games = games_bought_games_first_friend + games_bought_games_second_friend + games_bought_garage_sale\n\nprint(total_games)" + ], + "Output Answer": [ + "6" + ], + "split": "test" + }, + { + "Input": "Manuel opened a savings account with an initial deposit of 177 dollars. If he wants to save 500 dollars during the next 19 weeks , how much must he save each week , in dollars?", + "Output Program": [ + "want_to_save_money = 500\ndeposit = 177\n\nno_weeks = 19\n\nsave_per_week = (want_to_save_money - deposit) / no_weeks\n\nprint(save_per_week)" + ], + "Output Answer": [ + "17" + ], + "split": "test" + }, + { + "Input": "The shoe store has twice as many black shoes as it does brown shoes. The total number of shoes is 66. How many brown shoes are there?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of brown shoes\nx = Symbol('x')\neq = Eq((x*2)+x, 66)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "22" + ], + "split": "test" + }, + { + "Input": "Sara picked 45 pears and Sally picked 11 pears from the pear tree. How many pears were picked in total ?", + "Output Program": [ + "sara_pears = 45\nsally_pears = 11\n\ntotal_pears = sara_pears + sally_pears\n\nprint(total_pears)" + ], + "Output Answer": [ + "56" + ], + "split": "test" + }, + { + "Input": "42.0 birds were sitting in a tree. Then 29.0 more flew up to the tree. How many are there in the tree.", + "Output Program": [ + "no_birds = 42\nflew_up_birds = 29\n\ntotal_birds = no_birds + flew_up_birds\n\nprint(total_birds)" + ], + "Output Answer": [ + "71" + ], + "split": "test" + }, + { + "Input": "Jason had 49 quarters in his bank. His dad gave him 25 more quarters. How many quarters does he have now ?", + "Output Program": [ + "jason_quarters = 49\nadded_quarters = 25\n\ntotal_quarters = jason_quarters + added_quarters\n\nprint(total_quarters)" + ], + "Output Answer": [ + "74" + ], + "split": "test" + }, + { + "Input": "Luke has 47.0 pieces of clothing to wash. He took 17.0 of them to dry cleaning. If he runs 5 loads the size of his remaining pieces of clothing, how many garments will be washed in total.", + "Output Program": [ + "total_pieces = 47\ndiscarded_pieces = 17\n\nsize_loads = 5\n\ntotal_washed = (total_pieces - discarded_pieces) * size_loads\n\nprint(total_washed)" + ], + "Output Answer": [ + "150" + ], + "split": "test" + }, + { + "Input": "A bee has 6.0 legs. The legs are split on 2.0 sides of their body. How many legs are on a side.", + "Output Program": [ + "no_legs = 6\nno_sides = 2\n\nlegs_per_side = no_legs / no_sides\n\nprint(legs_per_side)" + ], + "Output Answer": [ + "3" + ], + "split": "test" + }, + { + "Input": "Carolyn starts with 47.0 marbles and 6.0 oranges. Diana gives her 42.0 marbles . How many marbles does Carolyn end with.", + "Output Program": [ + "carolyn_marbles = 47\ncarolyn_oranges = 6\nadded_marbles = 42\n\ntotal_marbles = carolyn_marbles + added_marbles\n\nprint(total_marbles)" + ], + "Output Answer": [ + "89" + ], + "split": "test" + }, + { + "Input": "Customers of a phone company can choose between 2 service plans for long distance calls. The first plan has a 22 dollars monthly fee and charges an additional 0.13 dollars for each minute of calls. The second plan has an 8 dollars monthly fee and charges an additional 0.18 dollars for each minute of calls. For how many minutes of calls will the costs of the two plans be equal?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\nmonthly_fee_company_1 = 22\ncharge_per_min_company_1 = 0.13\nmonthly_fee_company_2 = 8\ncharge_per_min_company_2 = 0.18\n\n# x = number of minutes at which charges of both the companies are same\nx = Symbol('x')\neq = Eq(monthly_fee_company_1+(x*charge_per_min_company_1), monthly_fee_company_2+(x*charge_per_min_company_2))\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "280" + ], + "split": "test" + }, + { + "Input": "Lillian collects 88.0 candies. Lillian gives her father 5.0 candies. How many candies does Lillian have.", + "Output Program": [ + "lillian_candies = 88\ngave_candies = 5\n\nremaining_candies = lillian_candies - gave_candies\n\nprint(remaining_candies)" + ], + "Output Answer": [ + "83" + ], + "split": "test" + }, + { + "Input": "Jorge scored 156.0 goals playing soccer last season. This season he scored 187.0 goals. How many more goals did he score this season .", + "Output Program": [ + "last_season = 156\nthis_season = 187\n\nmore_goals = this_season - last_season\n\nprint(more_goals)" + ], + "Output Answer": [ + "31" + ], + "split": "test" + }, + { + "Input": "Find the two numbers whose sum is 45 and such that one is 4 times as large as the other. Find the larger number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = larger number\nx = Symbol('x')\neq = Eq((x/4)+x, 45)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "36" + ], + "split": "test" + }, + { + "Input": "The Kings won two less than three times as many games as they lost. They played 82 games. How many wins did the team have?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of games king lost\nx = Symbol('x')\neq = Eq(((3*x)-2)+x, 82)\n\nanswer = solve(eq)\n\nnumber_wins = (3 * answer[0]) - 2\n\nprint(number_wins)" + ], + "Output Answer": [ + "61" + ], + "split": "test" + }, + { + "Input": "Mary had 33.0 Pokemon cards , and 6.0 were torn . Mary gave Sam 23.0 of her Pokemon cards . How many Pokemon cards does Mary have now .", + "Output Program": [ + "mary_pokemon = 33\ntorn_pokemon = 6\ngave_pokemon = 23\n\nremaining_pokemon = mary_pokemon - gave_pokemon\n\nprint(remaining_pokemon)" + ], + "Output Answer": [ + "10" + ], + "split": "test" + }, + { + "Input": "While digging through her clothes for ice cream money, Joan found 15 dimes in her jacket, and 4 dimes in her shorts. How much money did Joan find?", + "Output Program": [ + "added_no_nickles = 3\nadded_no_dimes = 13\n\navailable_no_dimes = 7\navailable_dollars = 9/2\n\n# price of 1 dime = 10 cents and price of 1 nickle = 5 cents and price of 1 dollar = 100 cents\n\ntotal_cents = (added_no_nickles * 5) + (added_no_dimes * 10) + (available_no_dimes * 10) + (available_dollars * 100)\n\ntotal_dollars = total_cents / 100\n\nprint(total_dollars)" + ], + "Output Answer": [ + "1.9" + ], + "split": "test" + }, + { + "Input": "Paul was collecting cans for recycling. On Saturday he filled 6.0 bags up, and on Sunday he threw away 3.0 more bags. If each bag had 8.0 cans in it, how many cans did he pick up total.", + "Output Program": [ + "total_bags = 6\nthrew_bags = 3\ncans_per_bag = 8\n\ntotal_cans = (total_bags - threw_bags) * cans_per_bag\n\nprint(total_cans)" + ], + "Output Answer": [ + "24" + ], + "split": "test" + }, + { + "Input": "The Hawks have 7.0 points. Each touchdown is worth 3.0 points. How many touchdowns were made.", + "Output Program": [ + "total_points = 7\npoints_per_touchdown = 3\n\nno_touchdowns = total_points / points_per_touchdown\n\nprint(no_touchdowns)" + ], + "Output Answer": [ + "2.333333333" + ], + "split": "test" + }, + { + "Input": "There are 390.0 students at a school. If each student studies 30.0 hours, how many hours of studying are completed.", + "Output Program": [ + "no_students = 390\nhour_per_student = 30\n\ntotal_hours = no_students * hour_per_student\n\nprint(total_hours)" + ], + "Output Answer": [ + "11700" + ], + "split": "test" + }, + { + "Input": "Jack starts with 62.0 marbles. Rebecca shares 33.0 with him. How many marbles does Jack end with.", + "Output Program": [ + "jack_marbles = 62\nrebecca_marbles = 33\n\ntotal_marbles = jack_marbles + rebecca_marbles\n\nprint(total_marbles)" + ], + "Output Answer": [ + "95" + ], + "split": "test" + }, + { + "Input": "Twice a number increased by 5 is 17. Find the number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq((2*x)+5, 17)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "6" + ], + "split": "test" + }, + { + "Input": "1 number is 9 less than twice another , and their sum is 42. Find the smaller number.", + "Output Program": [ + "no_cages = 6\nbirds_per_cage = 6\nremoved_birds_per_cage = 2\n\nremaining_birds = (birds_per_cage - removed_birds_per_cage) * no_cages\n\nprint(remaining_birds)" + ], + "Output Answer": [ + "17" + ], + "split": "test" + }, + { + "Input": "The US Senate had a total of 99 Democrats and Republicans. There were 11 more Republicans than Democrats. How many Democrats and Republicans were there in the Senate?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of democrats\nx = Symbol('x')\neq = Eq((x-11)+x, 99)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "55" + ], + "split": "test" + }, + { + "Input": "A bricklayer lays an average of 150 bricks per hour. During a job , he is called away and replaced by a less experienced man , who averages 120 bricks per hour. The two men laid 930 bricks in 7 hours. How long did the bricklayer work?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# first_person = first bricklayer person 150 bricks per hour, second_person = first bricklayer person 120 bricks per hour\nfp, sp = symbols('first_person, second_person')\n\neq1 = Eq(fp+sp, 7)\neq2 = Eq(fp*150+sp*120, 930)\n\nanswer_dict = solve((eq1, eq2), (fp, sp))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['first_person'])" + ], + "Output Answer": [ + "3" + ], + "split": "test" + }, + { + "Input": "A pet store has 6.0 bird cages. If each cage has 6 birds in it, but 2 are removed from each cage, how many birds does the pet store now have .", + "Output Program": [ + "no_cages = 6\nbirds_per_cage = 6\nremoved_birds_per_cage = 2\n\nremaining_birds = (birds_per_cage - removed_birds_per_cage) * no_cages\n\nprint(remaining_birds)" + ], + "Output Answer": [ + "24" + ], + "split": "test" + }, + { + "Input": "Find bigger number of the two numbers whose sum is 14 if one number is 3 times as large as the other number?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = larger number\nx = Symbol('x')\neq = Eq((x/3)+x, 14)\n\nanswer = solve(eq)\n\nprint(float(answer[0]))" + ], + "Output Answer": [ + "10.5" + ], + "split": "test" + }, + { + "Input": "kevin bought 3 muffins and a bottle of juice that cost 1.45 dollars. He paid a total of 3.70 dollars. How much did each muffin cost?", + "Output Program": [ + "no_muffins = 3\njuice_cost = 1.45\ntotal_cost = 3.70\n\ncost_per_muffin = (total_cost - juice_cost) / no_muffins\n\nprint(cost_per_muffin)" + ], + "Output Answer": [ + "0.75" + ], + "split": "test" + }, + { + "Input": "A box of books weighs 42 pounds. If each book weighs 3 pounds, how many books are there in the box.", + "Output Program": [ + "books_box_weight = 42\nweight_per_book = 3\n\nno_books = books_box_weight / weight_per_book\n\nprint(no_books)" + ], + "Output Answer": [ + "126" + ], + "split": "test" + }, + { + "Input": "Teresa jogs at 5 kilometres per hour. if she cover 25 kilometres how long would that take.", + "Output Program": [ + "kilometer_per_hour = 5\ntotal_kilometers = 25\n\nno_hours = total_kilometers / kilometer_per_hour\n\nprint(no_hours)" + ], + "Output Answer": [ + "125" + ], + "split": "test" + }, + { + "Input": "Beth has 4.0 packs of crayons. Each pack has 10.0 crayons in it. She gave away 6.0 of her crayons. How many crayons does Beth have altogether.", + "Output Program": [ + "no_packages = 4\ncrayons_per_package = 10\ngave_crayons = 6\n\nremaining_crayons = (no_packages * crayons_per_package) - gave_crayons\n\nprint(remaining_crayons)" + ], + "Output Answer": [ + "34" + ], + "split": "test" + }, + { + "Input": "Together , Jane and Jill have 32 dolls. Jill has 6 more dolls than Jane does. How many dolls does Jill have?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of dolls jlll has\nx = Symbol('x')\neq = Eq((x-6)+x, 32)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "19" + ], + "split": "test" + }, + { + "Input": "A peach and a apple cost 70 cents. The peach is more expensive than the apple by 60 cents. What is the cost of an apple , in cents?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = cost of apple\nx = Symbol('x')\neq = Eq((x+60)+x, 70)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "5" + ], + "split": "test" + }, + { + "Input": "Sandy has 26.0 pet fish. Her cat ate 6.0. How many does Sandy have now.", + "Output Program": [ + "available_fish = 26\nate_fish = 6\n\nremaining_fish = available_fish - ate_fish\n\nprint(remaining_fish)" + ], + "Output Answer": [ + "20" + ], + "split": "test" + }, + { + "Input": "A peach and a apple cost 70 cents. The peach is more expensive than the apple by 60 cents. What is the cost a peach , in cents?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = cost of peach\nx = Symbol('x')\neq = Eq((x-60)+x, 70)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "65" + ], + "split": "test" + }, + { + "Input": "Alyssa had 129.0 cookies. Aiyanna has 140.0. How many cookies do Aiyanna and Alyssa have together.", + "Output Program": [ + "alyssa_cookies = 129\naiyanna_cookies = 140\n\ntotal_cookies = alyssa_cookies + aiyanna_cookies\n\nprint(total_cookies)" + ], + "Output Answer": [ + "269" + ], + "split": "test" + }, + { + "Input": "Carol collects 5.0 peanuts. She gives her father 2.0. How many peanuts does Carol have left.", + "Output Program": [ + "carol_peanuts = 5\ngave_peanuts_father = 2\n\nremaining_peanuts = carol_peanuts - gave_peanuts_father\n\nprint(remaining_peanuts)" + ], + "Output Answer": [ + "3" + ], + "split": "test" + }, + { + "Input": "Tim has saved 2000 cents from selling lemonade. How many dollars does Tim have?", + "Output Program": [ + "toms_cents = 2000\n\ncents_to_dollar = toms_cents / 100\n\nprint (cents_to_dollar)" + ], + "Output Answer": [ + "20" + ], + "split": "test" + }, + { + "Input": "Your family goes to a restaurant for dinner. There are 6 people in your family. Some order the chicken dinner for 14.80 dollars and some order the steak dinner for 17.00 dollars. If the total bill was 91.00 dollars , how many people ordered the chicked dinner?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# chicken_dinner = number of people ordered chicken dinner, steak_dinner = number of people ordered steak dinner\ncd, sd = symbols('chicken_dinner, steak_dinner')\n\neq1 = Eq(cd+sd, 6)\neq2 = Eq(14.80*cd+17*sd, 91)\n\nanswer_dict = solve((eq1, eq2), (cd, sd))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['chicken_dinner'])" + ], + "Output Answer": [ + "1" + ], + "split": "test" + }, + { + "Input": "Johnny ran 10.0 laps. It takes him 3.0 minutes to run 1.0 lap. How long did Johnny run.", + "Output Program": [ + "no_laps = 10\nmins_per_lap = 3\n\ntotal_mins = no_laps * mins_per_lap\n\nprint(total_mins)" + ], + "Output Answer": [ + "30" + ], + "split": "test" + }, + { + "Input": "A company invited 18.0 people to a luncheon; 12.0 more people showed up. If the tables they had held 3.0 people each, how many tables do they need.", + "Output Program": [ + "invited_people = 18\nadded_people = 12\n\npeople_per_table = 3\n\nno_tables = (invited_people + added_people) / people_per_table\n\nprint(no_tables)" + ], + "Output Answer": [ + "10" + ], + "split": "test" + }, + { + "Input": "One number is 11 more than 3 times another number. Their sum is 55. Find the smaller number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaller number\nx = Symbol('x')\neq = Eq((3*x+11)+x, 55)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "11" + ], + "split": "test" + }, + { + "Input": "Paul has 30 postcards. He has 4 times as many large postcards as small postcards. How many small postcards does he have?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = small postcards\nx = Symbol('x')\neq = Eq((4*x)+x, 30)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "6" + ], + "split": "test" + }, + { + "Input": "When Joan was visited by the toothfairy, she received 14 each of quarters, half-dollars, and dimes. How much money did the toothfairy leave Joan?", + "Output Program": [ + "no_quarters = 14\nno_dimes = 14\nno_half_dollars = 14\n\n# price of 1 quarter = 25 cents and price of 1 dime = 10 cents and price of 1 dollar = 50 cents\n\ntotal_cents = (no_quarters * 25) + (no_dimes * 10) + (no_half_dollars * 50)\n\ntotal_dollars = total_cents / 100\n\nprint(total_dollars)" + ], + "Output Answer": [ + "11.9" + ], + "split": "test" + }, + { + "Input": "John is writing an article. The article is limited to 48,000 words. He decides to use two types of font. Large font is 1,800 words per page , small font is 2,400 words per page. He is allowed 21 pages for this article. How many pages are in small font?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# large_fonts = 1800 words per page, small_fonts = 2400 words per page\nlf, sf = symbols('large_fonts, small_fonts')\n\neq1 = Eq(lf+sf, 21)\neq2 = Eq(1800*lf+2400*sf, 48000)\n\nanswer_dict = solve((eq1, eq2), (lf, sf))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['small_fonts'])" + ], + "Output Answer": [ + "17" + ], + "split": "test" + }, + { + "Input": "2 cars start at the same place and time , and travel in opposite directions. One car is traveling 15 kilometers per hour faster than the other. After 5 hours , the 2 cars are 275 km apart. Find the speed of faster car.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = speed of slowest car\nx = Symbol('x')\n# As both cars travel in opposite direction\neq = Eq(((x+15)+(x))*5, 275)\n\nanswer = solve(eq)\n\nspeed_slowest_car = answer[0]\n\nspeed_longest_car = speed_slowest_car + 15\n\nprint(speed_longest_car)" + ], + "Output Answer": [ + "35" + ], + "split": "test" + }, + { + "Input": "4.0 birds were sitting on the fence. 2.0 more birds flew away. How many birds are now sitting on the fence.", + "Output Program": [ + "total_birds = 4\nflew_away_birds = 2\n\nremaining_birds = total_birds - flew_away_birds\n\nprint(remaining_birds)" + ], + "Output Answer": [ + "2" + ], + "split": "test" + }, + { + "Input": "A restaurant sold 49 hamburgers last week. How many hamburgers on average were sold each day ?", + "Output Program": [ + "total_hamburgers_week = 49\ndays_in_week = 7\n\nhamburger_per_day = total_hamburgers_week / days_in_week\n\nprint(hamburger_per_day)" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "An employment agency specializing in temporary construction help pays heavy equipment operators 140 dollars per day and general laborers 90 dollars per day. If 35 people were hired and the payroll was 3950 dollars , how many heavy equipment operators were employed?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# heavy_operators = number of heavy equipment operators, general_laborers = number of general laborers\nho, gl = symbols('heavy_operators, general_laborers')\n\neq1 = Eq((ho+gl), 35)\neq2 = Eq(140*ho+90*gl, 3950)\n\nanswer_dict = solve((eq1, eq2), (ho, gl))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['heavy_operators'])" + ], + "Output Answer": [ + "16" + ], + "split": "test" + }, + { + "Input": "Jovana filled her bucket with 12.0 pounds of shells. If she removes 5.0 pounds of shell from her bucket, how many pounds does she have.", + "Output Program": [ + "total_shells = 12\nremoved_shells = 5\n\nremaining_shells = total_shells - removed_shells\n\nprint(remaining_shells)" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "Rupert and Ronald aced their math test. So their mother bought for them a wonderful trampoline yesterday. Ronald jumped 157.0 times on the trampoline. Rupert jumped 86.0 less times than Ronald. How many times did Rupert jump.", + "Output Program": [ + "ronald_jump = 157\nrupert_less_ronald = 86\n\nrupert_jump = ronald_jump - rupert_less_ronald\n\nprint(rupert_jump)" + ], + "Output Answer": [ + "71" + ], + "split": "test" + }, + { + "Input": "An auditorium has 500 balcony seats and 1800 main-level seats. If tickets for balcony seats will cost 15 dollars less than tickets for main-level seats , what should the prices be for the balcony seats , so that the total revenue from a sellout performance will be 84,500?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = price for the balcony seats\nx = Symbol('x')\neq = Eq((500*(x))+(1800*(x+15)), 84500)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "25" + ], + "split": "test" + }, + { + "Input": "A florist had 37.0 roses. If she picked 16.0 more and then later picked another 19.0 more, how many roses would she have.", + "Output Program": [ + "available_roses = 37\nfirst_added_roses = 16\nsecond_added_roses = 19\n\ntotal_roses = available_roses + first_added_roses + second_added_roses\n\nprint(total_roses)" + ], + "Output Answer": [ + "72" + ], + "split": "dev" + }, + { + "Input": "It takes 7.0 minutes to bake 4.0 pans of cookies. How long will it take to bake 1.0 pan of cookies.", + "Output Program": [ + "total_minutes = 7\ntotal_pans_cookies = 4\n\nminute_per_pan_cookie = total_minutes / total_pans_cookies\n\nprint(minute_per_pan_cookie)" + ], + "Output Answer": [ + "1.75" + ], + "split": "dev" + }, + { + "Input": "Willie has 48.0 bananas. Charles has 35.0 bananas. He eats 14.0. How many bananas did they originally have together.", + "Output Program": [ + "wille_bananas = 48\ncharles_bananas = 35\neat_bananas = 14\n\ntotal_originally_bananas = wille_bananas + charles_bananas\n\nprint(total_originally_bananas)" + ], + "Output Answer": [ + "83" + ], + "split": "dev" + }, + { + "Input": "Randy needs 53 cupcakes for a birthday party. He already has 7 chocolate cupcakes and 19 vanilla cupcakes. How many more cupcakes should Randy buy?", + "Output Program": [ + "chocolate_cupcakes = 7\nvanilla_cupcakes = 19\n\ntotal_cupcakes = 53\n\nbuy_cupcakes = total_cupcakes - (chocolate_cupcakes + vanilla_cupcakes)\n\nprint(buy_cupcakes)" + ], + "Output Answer": [ + "32" + ], + "split": "dev" + }, + { + "Input": "Warren has 252.0 tables. Each table will hold 4.0 guests. How many guests will there be.", + "Output Program": [ + "no_tables = 252\nguests_per_table = 4\n\nno_guests = no_tables * guests_per_table\n\nprint(no_guests)" + ], + "Output Answer": [ + "1008" + ], + "split": "dev" + }, + { + "Input": "Sara grew 43 pumpkins, but the rabbits ate 23 pumpkins. How many pumpkins does Sara have left ?", + "Output Program": [ + "available_pumpkins = 43\nrabbit_ate_pumpkin = 23\n\nremaining_pumpkin = available_pumpkins - rabbit_ate_pumpkin\n\nprint(remaining_pumpkin)" + ], + "Output Answer": [ + "20" + ], + "split": "dev" + }, + { + "Input": "I have 4.0 pencil boxes. If I fill each box with 648.0 pencils, how many pencils will I have.", + "Output Program": [ + "total_boxes = 4\npencils_per_box = 648\n\ntotal_pencils = total_boxes * pencils_per_box\n\nprint(total_pencils)" + ], + "Output Answer": [ + "2592" + ], + "split": "dev" + }, + { + "Input": "Mary picked 122 oranges and Jason picked 105 oranges from the orange tree. How many oranges were picked in total ?", + "Output Program": [ + "mary_oranges = 122\njason_oranges = 105\n\ntotal_oranges = mary_oranges + jason_oranges\n\nprint(total_oranges)" + ], + "Output Answer": [ + "227" + ], + "split": "dev" + }, + { + "Input": "Find smaller number of the two numbers whose sum is 14 if one number is 3 times as large as the other number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaller number\nx = Symbol('x')\neq = Eq((3*x)+x, 14)\n\nanswer = solve(eq)\n\nprint(float(answer[0]))" + ], + "Output Answer": [ + "3.5" + ], + "split": "dev" + }, + { + "Input": "A restaurant made 9.0 hamburgers and 4.0 hot dogs to serve during lunch . Then the restaurant made 3.0 more hamburgers . How many hamburgers were made .", + "Output Program": [ + "no_hamburgers = 9\nno_hotdogs = 4\nadded_hamburgers = 3\n\ntotal_hamburgers = no_hamburgers + added_hamburgers\n\nprint(total_hamburgers)" + ], + "Output Answer": [ + "12" + ], + "split": "dev" + }, + { + "Input": "A pet store has 6.0 bird cages. If the pet store has 6.0 parrots and 2.0 parakeets, how many birds can occupy 1.0 cage on average .", + "Output Program": [ + "total_cages = 6\nno_parrots = 6\nno_parakeets = 2\n\nbird_per_cage = (no_parrots + no_parakeets) / total_cages\n\nprint(bird_per_cage)" + ], + "Output Answer": [ + "1.333333333" + ], + "split": "dev" + }, + { + "Input": "There are 397.0 black dots on the butterflies. There are 12.0 butterflies. How many black dots are on each butterfly.", + "Output Program": [ + "total_black_dots = 397\nno_butterfly = 12\n\nblack_dots_per_butterfly = total_black_dots / no_butterfly\n\nprint(black_dots_per_butterfly)" + ], + "Output Answer": [ + "33.08333333" + ], + "split": "dev" + }, + { + "Input": "Carla has some marbles. She bought 134.0 marbles. She had 187.0 marbles before. How many does she have now.", + "Output Program": [ + "added_marbles = 134\navailable_marbles = 187\n\ntotal_marbles = added_marbles + available_marbles\n\nprint(total_marbles)" + ], + "Output Answer": [ + "321" + ], + "split": "dev" + }, + { + "Input": "Tom found 5 seashells on the beach. he gave Jessica 2 of the seashells. How many seashells does he now have ?", + "Output Program": [ + "available_seashell = 5\ngave_seashell = 2\n\nremaining_seashells = available_seashell - gave_seashell\n\nprint(remaining_seashells)" + ], + "Output Answer": [ + "3" + ], + "split": "dev" + }, + { + "Input": "Sara had 100.0 pennies and 783.0 quarters in her bank . Her dad gave 271.0 quarters to Sara . How many quarters does she have now .", + "Output Program": [ + "no_pennies = 100\nno_quarters = 783\nadded_quarters = 271\n\ntotal_quarters = no_quarters + added_quarters\n\nprint(total_quarters)" + ], + "Output Answer": [ + "1054" + ], + "split": "dev" + }, + { + "Input": "A washer-dryer combination costs 1,200 dollars. If the washer costs 220 dollars more than the dryer , what does the washer cost?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = dryer cost\nx = Symbol('x')\neq = Eq((x+220)+x, 1200)\n\nanswer = solve(eq)\n\ndryer_cost = answer[0]\nwahser_cost = dryer_cost + 220\n\nprint(wahser_cost)" + ], + "Output Answer": [ + "710" + ], + "split": "dev" + }, + { + "Input": "Jane had been saving large empty cans to serve as pots for sunflowers. If she has 54.0 sunflower seeds, and there are 9.0 cans, how many seeds will be placed in each can if she places an equal number of seeds in each can.", + "Output Program": [ + "no_sunflower = 54\nno_cans = 9\n\nsunflower_per_can = no_sunflower / no_cans\n\nprint(sunflower_per_can)" + ], + "Output Answer": [ + "6" + ], + "split": "dev" + }, + { + "Input": "A 177-inch pipe is cut into two pieces. One piece is two times the length of the other. Find the lengths of the shorter pieces.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaler number\nx = Symbol('x')\neq = Eq(((2*x)-3)+x, 39)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "59" + ], + "split": "dev" + }, + { + "Input": "One number is 3 less than twice another. If their sum is 39 , find the smaller number", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaler number\nx = Symbol('x')\neq = Eq((3*x)+x, 124)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "14" + ], + "split": "dev" + }, + { + "Input": "There was 698.0 children taking a test. 105.0 passed. How many had to sit it again.", + "Output Program": [ + "total_children = 698.0\npass_children = 105.0\n\nfailed_children = total_children - pass_children\n\nprint(failed_children)" + ], + "Output Answer": [ + "593" + ], + "split": "dev" + }, + { + "Input": "On Wednesday, Joan spent 4 half-dollars playing pinball. The next day, she spent 14 half-dollars on pinball. What was the total amount Joan spent playing pinball?", + "Output Program": [ + "today_pinball_halfdollars = 4\nnextday_pinball_halfdollars = 14\n\ntotal_dollars = (today_pinball_halfdollars + nextday_pinball_halfdollars) / 2\n\nprint(total_dollars)" + ], + "Output Answer": [ + "9" + ], + "split": "dev" + }, + { + "Input": "Ilida went to Minewaska Sate Park one day this summer. All of the people at the park were either hiking or bike riding. There were 178 more hikers than bike riders. If there were a total of 676 people at the park , how many were hiking?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# b = number of bikers\nb = Symbol('bikers')\neq = Eq(b+(b+178), 676)\n\nanswer = solve(eq)\n\nbikers = answer[0]\nhikers = bikers + 178\n\nprint(hikers)" + ], + "Output Answer": [ + "427" + ], + "split": "dev" + }, + { + "Input": "A group of science students went on a field trip. They took 6.0 vans and 8.0 buses. There were 6.0 people in each van and 18.0 people in each bus. How many more people went on the field trip in buses than those travelling by van.", + "Output Program": [ + "vans = 6\nbuses = 8\nvan_peoples = 6\nbus_peoples = 18\n\npeoples_on_bus = buses * bus_peoples\npeoples_on_van = vans * van_peoples\n\ncomparison = peoples_on_bus - peoples_on_van\n\nprint(comparison)" + ], + "Output Answer": [ + "108" + ], + "split": "dev" + }, + { + "Input": "A store had 40.0 coloring books in stock. They ended up putting them on sale and getting rid of 20.0 of them. The put coupons in the ones they still had with 4.0 coupons in each book. How many coupons did they use.", + "Output Program": [ + "books = 40\nsold = 20\ncoupons = 4\n\ntotal_coupons = (books - sold) * coupons\n\nprint(total_coupons)" + ], + "Output Answer": [ + "80" + ], + "split": "dev" + }, + { + "Input": "There were 9 people in line for bumper cars. If 6 people got tired of waiting and left, but 3 more people got int line, how many people were in line at some point .", + "Output Program": [ + "currently_waiting = 9\nleft_people = 6\nmore_left_people = 3\n\noriginal_waiting_people = currently_waiting + (left_people + more_left_people)\n\nprint(original_waiting_people)" + ], + "Output Answer": [ + "18" + ], + "split": "dev" + }, + { + "Input": "There were 22.0 kids playing soccer. If 14.0 decided to go home, how many would be left playing.", + "Output Program": [ + "total = 22\ngone_home = 14\n\nleft = total - gone_home\n\nprint(left)" + ], + "Output Answer": [ + "8" + ], + "split": "dev" + }, + { + "Input": "Isabel had 72.0 homework problems. She finished 32.0 of them. If each problem has 5 sub tasks, how many sub tasks she has to solve.", + "Output Program": [ + "problems = 72\nfinished = 32\nremaining = problems - finished\nsub_tasks = 5\n\ntasks_remaining = remaining * sub_tasks\n\nprint(tasks_remaining)" + ], + "Output Answer": [ + "200" + ], + "split": "dev" + }, + { + "Input": "Gumballs come in packages of 5.0. Nathan ate 20.0 packages. How many gumballs did he eat .", + "Output Program": [ + "packages = 20\npieces = 5\n\ntotal_gumballs = packages * pieces\n\nprint(total_gumballs)" + ], + "Output Answer": [ + "100" + ], + "split": "dev" + }, + { + "Input": "Zach wants to ride on the Ferris wheel and the roller coaster. The Ferris wheel costs 2.0 tickets, the roller coaster costs 7.0 tickets, and there is a discount of 1.0 ticket for going on multiple rides. Zach also has a newspaper coupon for a free 1.0 ticket. How many tickets did Zach need to buy to go on both rides.", + "Output Program": [ + "ferris_wheel_ticket = 2\nroller_coast_ticket = 7\n\ntotal_ticket = roller_coast_ticket + ferris_wheel_ticket\n\ndiscount_ticket = 1\nnewspaper_coupon_tocket = 1\n\nremaining_ticket = total_ticket - discount_ticket - newspaper_coupon_tocket\n\nprint(remaining_ticket)" + ], + "Output Answer": [ + "7" + ], + "split": "dev" + }, + { + "Input": "Gary had 73.0 dollars. He sold his pet snake for 55.0 dollars. How many dollars does Gary have now.", + "Output Program": [ + "available_dollars = 73\nsold_snake_dollars = 55\n\ntotal_dollars_after = available_dollars + sold_snake_dollars\n\nprint(total_dollars_after)" + ], + "Output Answer": [ + "128" + ], + "split": "dev" + }, + { + "Input": "During the 1998-1999 Little League season , the Tigers played 57 games. They lost 21 more games than they won. They did n't tie any. How many games did they win that season?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# win = number of winning games\nw = Symbol('win')\neq = Eq(w+(w+21), 57)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "18" + ], + "split": "dev" + }, + { + "Input": "A plane travels due East at 325 miles per hour and another plane travels due west at 275 miles per hour. If they leave at the same time , and from the same place , in how many hours will they be 2100 miles apart?", + "Output Program": [ + "east_plane_speed = 325 # mph\nwest_plane_speed = 275 # mph\n\n# as both the plane travel in opposite direction\nabs_speed = abs(east_plane_speed + west_plane_speed)\n\ndistance_apart = 2100 # miles\nhours_take = distance_apart / abs_speed # hours\n\nprint(hours_take)" + ], + "Output Answer": [ + "3.5" + ], + "split": "dev" + }, + { + "Input": "How many slice of pie are served today, if 7 are sold in total of which 5 were sold yesterday.", + "Output Program": [ + "total = 7\nyesterday = 5\ntoday = total - yesterday\n\nprint(today)" + ], + "Output Answer": [ + "2" + ], + "split": "dev" + }, + { + "Input": "The second of two numbers is 4 more than the first. The sum is 56. Find the second numbers.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = first number\nx = Symbol('x')\neq = Eq(x+(x+4), 56)\n\nanswer = solve(eq)\n\nfirst_number = answer[0]\nsecond_number = first_number + 4\n\nprint(second_number)" + ], + "Output Answer": [ + "30" + ], + "split": "dev" + }, + { + "Input": "A pet store had 13.0 siamese cats and 5.0 house cats. During a purchase, they added 10.0 cats. How many cats do they have left.", + "Output Program": [ + "siamese = 13\nhouse = 5\nadded = 10\n\ntotal = siamese + house + added\n\nprint(total)" + ], + "Output Answer": [ + "28" + ], + "split": "dev" + }, + { + "Input": "The ferris wheel in paradise park has 6.0 seats. 14.0 people want to ride the ferris wheel. How many times does the ferris wheel have to run for everyone to get a turn.", + "Output Program": [ + "seats = 6\npeoples = 14\nrun = round(peoples/seats, 9)\n\nprint(run)" + ], + "Output Answer": [ + "2.333333333" + ], + "split": "dev" + }, + { + "Input": "Ned bought 14.0 boxes of chocolate candy and gave 7.0 to his little brother. If each box has 6.0 pieces inside it, how many pieces did Ned still have.", + "Output Program": [ + "boxes = 14\ngave = 7\npieces = 6\n\nleft = (boxes - gave) * pieces\n\nprint(left)" + ], + "Output Answer": [ + "42" + ], + "split": "dev" + }, + { + "Input": "Mary earns $46.0 cleaning a home. How many dollars did she earn, if she cleaned 276.0 homes.", + "Output Program": [ + "dollars = 46\nhomes = 276\n\nearn = dollars * homes\n\nprint(earn)" + ], + "Output Answer": [ + "12696" + ], + "split": "dev" + }, + { + "Input": "If the product of 5 and a number is increased by 4 , the result is 19. What is the number?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number which is multiplied with 5\nx = Symbol('x')\neq = Eq((5*x)+4, 19)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "3" + ], + "split": "dev" + }, + { + "Input": "Carla has some marbles. Carla bought 489.0 marbles. Now Calra has 2778.0 marbles all together. How many did Carla start with.", + "Output Program": [ + "total = 2778\nbought = 489\n\nstart = total - bought\n\nprint(start)" + ], + "Output Answer": [ + "2289" + ], + "split": "dev" + }, + { + "Input": "Dan has 32.0 green and 38.0 violet marbles . Mike took 23.0 of Dan 's green marbles . Now , Dan has ____ green marbles .", + "Output Program": [ + "dan = 32\ntaken = 23\n\nleft = dan - taken\n\nprint(left)" + ], + "Output Answer": [ + "9" + ], + "split": "dev" + }, + { + "Input": "An art dealer sold 16 etchings for 630 dollars. He sold some of them at 35 dollars each and the rest at 45 dollars each. How many etchings did he sell at 35 dollars?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of etchings which sold at 35 dollars\nx = Symbol('x')\neq = Eq(35*x+(16-x)*45, 630)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "9" + ], + "split": "dev" + }, + { + "Input": "There are 54 scissors in the drawer. Keith placed 22 more scissors in the drawer. How many scissors are now there in all ?", + "Output Program": [ + "drawer = 54\nplaced = 22\n\ntotal = drawer + placed\n\nprint(total)" + ], + "Output Answer": [ + "76" + ], + "split": "dev" + }, + { + "Input": "There are 115 pencils in the drawer. Sara placed 100 more pencils in the drawer. How many pencils are now there in all ?", + "Output Program": [ + "pencils_before = 115\npencils_added = 100\n\ntotal_pencils = pencils_before + pencils_added\n\nprint(total_pencils)" + ], + "Output Answer": [ + "215" + ], + "split": "dev" + }, + { + "Input": "The first agency charges 20.25 dollars per day and 0.14 dollars per mile. The second agency charges 18.25 dollars per day and 0.22 dollars per mile. How many miles would you have to drive before the first agency is less expensive than the second?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\ndollar_per_day_agency_1 = 20.25\ndollar_per_mile_agency_1 = 0.14\ndollar_per_day_agency_2 = 18.25\ndollar_per_mile_agency_2 = 0.22\n\n# x = number of miles at which charges of both the agencies are same\nx = Symbol('x')\neq = Eq(dollar_per_day_agency_1+(dollar_per_mile_agency_1*x), dollar_per_day_agency_2+(dollar_per_mile_agency_2*x))\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "25" + ], + "split": "train" + }, + { + "Input": "2 trains leave simultaneously traveling on the same track in opposite directions at speeds of 50 and 64 miles per hour. How many hours will it take before they are 285 miles apart?", + "Output Program": [ + "first_train = 50\nsecond_train = 64\n\n# every hour both train will be (50 + 64) miles apart\nevery_hour_distance = first_train + second_train\ntotal_distance = 285\n\nhours_take = total_distance / every_hour_distance\n\nprint(hours_take)" + ], + "Output Answer": [ + "2.5" + ], + "split": "train" + }, + { + "Input": "A company 's profit for the first half of the year is 2,750,000 dollars greater than the profit for the second half. If the total annual profit is 3,635,000 dollars , find the profit for the second half-year.", + "Output Program": [ + "total_profit = 3635000\nfirsthalf_profit = 2750000\n\nsecondhalf_profit = int(total_profit - firsthalf_profit)\n\nprint(secondhalf_profit/2)" + ], + "Output Answer": [ + "442500" + ], + "split": "train" + }, + { + "Input": "Christine wandered at 20 miles an hour for 4 hours. How far did Christine go.", + "Output Program": [ + "miles = 20\nhours = 4\n\ndistance = miles * hours\n\nprint(distance)" + ], + "Output Answer": [ + "80" + ], + "split": "train" + }, + { + "Input": "A waiter had 9.0 tables he was waiting on, with 7.0 women and 3.0 men at the tables. How many customers total did the waiter have on average per table .", + "Output Program": [ + "women = 7\nmen = 3\n\ntables = 9\n\naverage = round((women + men) / tables, 9)\n\nprint(average)" + ], + "Output Answer": [ + "1.111111111" + ], + "split": "train" + }, + { + "Input": "If your gross pay is 450 dollars , while your net pay is 315 dollars , how much do you pay in taxes? Assume that all tax dollars are not included in net pay.", + "Output Program": [ + "gross = 450\nnet = 315\n\ntax = gross - net\n\nprint(tax)" + ], + "Output Answer": [ + "135" + ], + "split": "train" + }, + { + "Input": "Kelly has 121.0 Nintendo games. How many does Kelly need to give away so that Kelly will have 22.0 games left.", + "Output Program": [ + "total = 121\ngive = 22\n\nleft = total - give\n\nprint(left)" + ], + "Output Answer": [ + "99" + ], + "split": "train" + }, + { + "Input": "3 footballs and 1 soccer ball cost 155 dollars. 2 footballs and 3 soccer balls cost 220 dollars. Determine the cost of one soccer ball , in dollars.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 155\na_x = 3\na_y = 1\n\nb = 220\nb_x = 2\nb_y = 3\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "At the arcade Cody won 49.0 tickets. If he lost 6.0 tickets and later spent 25.0 tickets on a beanie, how many tickets would he have left.", + "Output Program": [ + "total = 49\nlost = 6\nspent = 25\n\nleft = total - lost - spent\n\nprint(left)" + ], + "Output Answer": [ + "18" + ], + "split": "train" + }, + { + "Input": "Tickets for a play at the community theater cost 12 dollars for an adult and 4 dollars for a child. If 130 tickets were sold and the total receipts were 840 dollars , how many child tickets were sold?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# adult = number of adults, children = number of children\na, c = symbols('adult, children')\n\neq1 = Eq((a+c), 130)\neq2 = Eq((12*a+4*c), 840)\n\nanswer_dict = solve((eq1, eq2), (a, c))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['children'])" + ], + "Output Answer": [ + "90" + ], + "split": "train" + }, + { + "Input": "In 1 week , a music store sold 9 guitars for a total of of 3611 dollars. Electric guitars sold for 479 dollars each and acoustic guitars sold for 339 dollars each. How many electric guitars were sold?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# electric_guitar = number of electric guitar, acoustic_guitar = number of acoustic guitar\neg, ag = symbols('electric_guitar, acoustic_guitar')\n\neq1 = Eq((eg+ag), 9)\neq2 = Eq((479*eg+339*ag), 3611)\n\nanswer_dict = solve((eq1, eq2), (eg, ag))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['electric_guitar'])" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Juan and Peter both leave a shopping center at the same time going in opposite directions. Juan is on his bike and travels 3 miles per hour faster than Peter who is on his skateboard. After 1.5 hours they are 19.5 miles apart. How fast does Peter travel?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\nx = Symbol('x')\n\nresult = solve( 1.5*x + 1.5*(x+3) - 19.5)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "A 69 inch board is cut into 2 pieces. One piece is 2 times the length of the other. What is the length of the shorter piece , in inches?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq((0.20*x)-4, 6)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "23" + ], + "split": "train" + }, + { + "Input": "The total attendance at a rally was 750 people. Tickets bought before the rally were 2 dollars each , and tickets bought at the door were 2.75 dollars each. If the total receipts were 1706.25 dollars. How many tickets were bought before the rally?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# before_ticket = ticket bought before rally, door_ticket = ticket bought at the door\nbt, dt = symbols('before_ticket, door_ticket')\n\neq1 = Eq((bt+dt), 750)\neq2 = Eq((2*bt+2.75*dt), 1706.25)\n\nanswer_dict = solve((eq1, eq2), (bt, dt))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['before_ticket'])" + ], + "Output Answer": [ + "475" + ], + "split": "train" + }, + { + "Input": "Nancy has saved 1 dozen quarters from washing cars. How much money does Nancy have ?", + "Output Program": [ + "quantity_dozen = 12\nquarters = 1/4\n\nnancy_saved_money = quantity_dozen * quarters\n\nprint(nancy_saved_money)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Zach scored 42.0 points in the football game. Ben scored 21.0 points. How many points did Zach and Ben contribute in total.", + "Output Program": [ + "zach = 42\nben = 21\n\nscore = zach + ben\n\nprint(score)" + ], + "Output Answer": [ + "63" + ], + "split": "train" + }, + { + "Input": "For his long distance phone service Milan pays a 2 dollars monthly fee plus 12 cents per minute. Last month , Milan 's long distance bill was 23.36 dollars. For how many minutes was Milan billed for?", + "Output Program": [ + "monthly = 2\nminutes_cent = 12\nbill = 23.36\nmonth = 1\n\nmonth_charge = bill - (monthly/month)\n\ntotal_minutes = int(((month_charge) * 100)/12)\n\nprint(total_minutes)" + ], + "Output Answer": [ + "178" + ], + "split": "train" + }, + { + "Input": "Two mechanics worked on a car. The first mechanic charged 45 dollars per hour , and the second mechanic charged 85 dollars per hour. The mechanics worked for a combined total of 20 hours , and together they charged a total of 1100 dollars. How long did the second mechanic work?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# first_mechanic = dollar per hour of first mechanic, second_mechanic = dollar per hour of second mechanic\nfm, sm = symbols('first_mechanic, second_mechanic')\n\neq1 = Eq((fm+sm), 20)\neq2 = Eq((45*fm+85*sm), 1100)\n\nanswer_dict = solve((eq1, eq2), (fm, sm))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['second_mechanic'])" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "About 4.9 million households had one brand of personal computers in 2001. The use of these computers grew at an average rate of 0.275 million households a year. In 2001 , about 2.5 millions households used another type of computer. The use of these computers grew at an average rate of 0.7 million households a year. How long will it take for the two types of computers to be in the same number of households?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n'''\nEq: N = 4.9 + 0.275x million\nEq: P = 2.5 + 0.7x million\n4.9 + 0.275 = 2.5 + 0.7x\n\n'''\n\nx = Symbol('x')\n\nresult = solve((4.9 + 0.275*x) - (2.5 + 0.7*x), x)[0]\n\nresult = round(result, 3)\n\nprint(result)" + ], + "Output Answer": [ + "5.647" + ], + "split": "train" + }, + { + "Input": "Nancy grew 6 potatoes. Sandy grew 7 potatoes. How many potatoes did they grow in total ?", + "Output Program": [ + "nancy = 6\nsandy = 7\n\ntotal = nancy + sandy \n\nprint(total)" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "Clarence has 5.0 oranges. He gave 3.0 to Joyce. Later, Clarence buys 9.0 Skittles at the store. How many oranges does Clarence have .", + "Output Program": [ + "oranges = 5\ngave = 3\n\ntotal = oranges - gave\n\nprint(total)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Joan has 40 blue balloons Melanie has 41 blue balloons. How many blue balloons do they have in total ?", + "Output Program": [ + "joan = 40\nmelaine = 41\n\ntotal = joan + melaine\n\nprint(total)" + ], + "Output Answer": [ + "81" + ], + "split": "train" + }, + { + "Input": "Marie starts with 95.0 erasers. She buys 42.0. How many erasers does Marie end with.", + "Output Program": [ + "eraser = 95\nbought = 42\n\ntotal = eraser + bought\n\nprint(total)" + ], + "Output Answer": [ + "137" + ], + "split": "train" + }, + { + "Input": "You sell tickets for admission to your school play and collect a total of 104 dollars. Admission prices are 6 dollars for adults and 4 dollars for children. You sold 21 tickets. How many children 's tickets did you sell?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# adult = number of adults, children = number of children\na, c = symbols('adult, children')\n\neq1 = Eq((a+c), 21)\neq2 = Eq((6*a+4*c), 104)\n\nanswer_dict = solve((eq1, eq2), (a, c))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['children'])" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "1 out of 2 numbers is thrice the other. If their sum is 124 , find the smaller number.", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number\nx = Symbol('x')\neq = Eq((0.20*x)-4, 6)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "31" + ], + "split": "train" + }, + { + "Input": "Student Council wants to rent a banquet hall for the prom. Caesar 's charges 800 dollars to rent the room and 30 dollars for each meal. Venus Hall charges 500 dollars to rent the room and 35 dollars for each meal. How many guests must attend the prom for the costs of the two halls to be the same?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#800+30X=500+35X\n\nx = Symbol('x')\n\nresult = solve((800 + 30*x) - (500 + 35*x), x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "60" + ], + "split": "train" + }, + { + "Input": "3.0 eggs are divided between 2.0 boxes. How many eggs fit in each box .", + "Output Program": [ + "eggs = 3\nboxes = 2\n\naverage = eggs/boxes\n\nprint(average)" + ], + "Output Answer": [ + "1.5" + ], + "split": "train" + }, + { + "Input": "Eldora and Finn went to an office supply store together. Eldora bought 15 boxes of paper clips and 7 packages of index cards for a total cost of 55.40 dollars. Finn bought 12 boxes of paper clips and 10 packages of index cards for a total cost of 61.70 dollars. Find the cost of one box of paper clips", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# paper_box = price of paper box, index_cards = price of index cards\npb, ic = symbols('paper_box, index_cards')\n\neq1 = Eq((15*pb+7*ic), 55.40)\neq2 = Eq((12*pb+10*ic), 61.70)\n\nanswer_dict = solve((eq1, eq2), (pb, ic))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['paper_box'])" + ], + "Output Answer": [ + "1.85" + ], + "split": "train" + }, + { + "Input": "You make candles and sell them for 15 dollars each. The material to make up to 20 candles costs 20 dollars. How many candles must you sell to have a profit of 85 dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n'''\nOne candle cost $1 to make\nThe profit per candle is 15 - 1 = 14\nProfit for making x candles is 85\n'''\n\nx = Symbol('x')\n\nresult = solve(85 - (15*x - x), x)[0]\n\nresult = round(float(result), 0) + 1 #You must sell x candles to make an $85 profit\n\nprint(int(result))" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "Adult tickets for a play cost 8 dollars and child tickets cost 1 dollars. If there were 22 people at a performance and the theater collected 50 dollars from ticket sales , how many children attended the play?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 22\nb = 8\nc = 1\nd = 50\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "18" + ], + "split": "train" + }, + { + "Input": "Dale's Vegetarian Restaurant bought 2.8333333333333335 pounds of green peppers and 2.8333333333333335 pounds of red peppers. How many pounds of peppers did Dale's Vegetarian Restaurant buy in all?", + "Output Program": [ + "green_pepper = 2.8333333333333335\nred_pepper = 2.8333333333333335\n\ntotal_pepper = green_pepper + red_pepper\n\nprint(total_pepper)" + ], + "Output Answer": [ + "5.666666667" + ], + "split": "train" + }, + { + "Input": "Three times a number is the same as the difference of twice the number and seven. Find the number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n# 3x = 2x-7 The difference of twice the number and 7.\n\nx = Symbol('x')\n\nresult = solve(3*x - (2*x - 7), x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "-7" + ], + "split": "train" + }, + { + "Input": "Goran will rent a car for the weekend. He can choose 1 of 2 plans. The first plan has an initial fee of 65 dollars and costs an additional 0.40 dollars per mile driven. The second plan has no initial fee but costs 0.60 dollars per mile driven. How many miles would Goran need to drive for the 2 plans to cost the same?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#65+0.40x=0.60x\n\nx = Symbol('x')\n\nresult = solve((65 + 0.40*x) - (0.60*x), x)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "325" + ], + "split": "train" + }, + { + "Input": "Mikey had 356.0 leaves. Suddenly there came 112.0 more leaves. how many leaves does Mikey have now.", + "Output Program": [ + "leaves = 356\ncame = 112\n\ntotal = leaves + came\n\nprint(total)" + ], + "Output Answer": [ + "468" + ], + "split": "train" + }, + { + "Input": "Beth has 4 packs of crayons and 10 friends including herself. She divides the packs among everyone. She then finds 6 packs in a drawer. If she keeps these for herself, how many packs does she have total.", + "Output Program": [ + "crayons = 4\nfriends = 10\n\naverage = crayons / friends\n\nfound = 6\n\ntotal = average + found\n\nprint(total)" + ], + "Output Answer": [ + "6.4" + ], + "split": "train" + }, + { + "Input": "Karin's science class weighed plastic rings for an experiment. They found that the orange ring weighed 0.08333333333333333 of an ounce, the purple ring weighed 0.3333333333333333 of an ounce, and the white ring weighed 0.4166666666666667 of an ounce. What was the total weight of the plastic rings?", + "Output Program": [ + "orange = 0.08333333333333333\npurple = 0.3333333333333333\nwhite = 0.4166666666666667\n\ntotal = orange + purple + white\n\nprint(total)" + ], + "Output Answer": [ + "0.8333333333" + ], + "split": "train" + }, + { + "Input": "A customer walks into an electronics store and buys 5 MP3 players and 8 sets of headphones , paying 840 dollars. A 2nd customer buys 3 MP3 players and 4 sets of headphones , and pays 480 dollars. How much does a set of headphones cost?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 840\na_x = 5\na_y = 8\n\nb = 480\nb_x = 3\nb_y = 4\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "30" + ], + "split": "train" + }, + { + "Input": "If 4.0 CDs fit on a shelf, how many shelves are needed to hold 8.0 CDs.", + "Output Program": [ + "shelf = 4\ncd = 8\n\nrequired = int(cd/shelf)\n\nprint(required)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Mrs.Martin bought 3 cups of coffee and 2 bagels and spent 12.75 dollars. Mr.Martin bought 2 cups of coffee and 5 bagels and spent 14.00 dollars. Find the cost of one bagel.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 12.75\na_x = 3\na_y = 2\n\nb = 14\nb_x = 2\nb_y = 5\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 1)\n\nprint(answer)" + ], + "Output Answer": [ + "1.5" + ], + "split": "train" + }, + { + "Input": "The Johnson Farm has 500 acres of land allotted for cultivating corn and wheat. The cost of cultivating corn and wheat is 42 dollars for corn and 30 dollars for wheat. Mr.Johnson has 18,600 dollars available for cultivating these crops. If he used all the land and entire budget , how many acres of wheat should he plant?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 500\nb = 42\nc = 30\nd = 18600\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "200" + ], + "split": "train" + }, + { + "Input": "The sum of 38 and twice a number is 124. Find the number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 2\nnumber = 124\n\nx = Symbol('x')\n\nresult = solve( (times*x) + 38 - number)[0]\n\n\nprint(result)" + ], + "Output Answer": [ + "43" + ], + "split": "train" + }, + { + "Input": "Mrs. Sheridan has 47.0 fish. She gave her sister 22.0 fish. How many fish does she have now.", + "Output Program": [ + "fish = 47\ngave = 22\n\nremaining = fish - gave\n\nprint(remaining)" + ], + "Output Answer": [ + "25" + ], + "split": "train" + }, + { + "Input": "A plane is using fuel at the rate of 9.5 gallons per hour and it has 6.3333 gallons left in its tank. How long can the plane continue to fly?", + "Output Program": [ + "per_hour = 9.5\nleft = 6.3333\n\nflying_time = round(left/per_hour, 4)\n\nprint(flying_time)" + ], + "Output Answer": [ + "0.6667" + ], + "split": "train" + }, + { + "Input": "A car rented for 29 dollars per day plus 0.08 dollars per mile. Julia paid 46.12 dollars for a 1-day rental. How far did she drive , in miles?", + "Output Program": [ + "price = 29\nmiles = 0.08\n\npaid = 46.12\n\nrate = paid- price\n\ndistance = round(rate / miles, 1)\n\nprint(int(distance))" + ], + "Output Answer": [ + "214" + ], + "split": "train" + }, + { + "Input": "A vase can hold 6.0 flowers. If you had 7.0 carnations in the 47.0 flowers, how many vases would you need to hold the flowers if you removed all the carnations.", + "Output Program": [ + "vase = 6\ncarnation = 7\nflowers = 47\nremoved = flowers - carnation\n\nvase_needed = round(removed / vase, 9)\n\nprint(vase_needed)" + ], + "Output Answer": [ + "6.666666667" + ], + "split": "train" + }, + { + "Input": "There were 28.0 girls and 35.0 boys on the playground at recess. How many more boys are there than girls.", + "Output Program": [ + "girls = 28\nboys = 35\n\ncomparison = boys - girls\n\nprint(comparison)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "Ellen had 2080.0 Legos, and she wins 17.0 Legos. How many Legos does she have now.", + "Output Program": [ + "girls = 28\nboys = 35\n\ncomparison = boys - girls\n\nprint(comparison)" + ], + "Output Answer": [ + "2097" + ], + "split": "train" + }, + { + "Input": "Admission tickets to a football game were 60 cents for adults and 25 cents for children. Receipts for the day showed that 280 persons attended and 140 dollars was collected. How many adults attended?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 280\nb = 25\nc = 60\nd = 140*100\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "200" + ], + "split": "train" + }, + { + "Input": "Nancy goes fishing with Joan. They catch 18 trout. If they equally split up the trout, how many will each one get ?", + "Output Program": [ + "trout = 18\nsplit = int(trout / 2)\n\nprint(split)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "Arthur bought 3 hamburgers and 4 hot dogs for 10 dollars. The next day , he bought 2 hamburgers and 3 hot dogs for 7 dollars. How much does a hot dog cost?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 10\na_x = 3\na_y = 4\n\nb = 7\nb_x = 2\nb_y = 3\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "1" + ], + "split": "train" + }, + { + "Input": "Tickets for adults are 5.50 dollars and tickets for children are 3.50 dollars. How many children 's tickets were purchased if 21 tickets were bought for 83.50 dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 21\nb = 5.50\nc = 3.50\nd = 83.50\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "16" + ], + "split": "train" + }, + { + "Input": "Joyce starts with 75.0 apples. Larry gives her 52.0 apples. How many apples does Joyce end with.", + "Output Program": [ + "apples = 75\ngot = 52\n\ntotal = apples + got\n\nprint(total)" + ], + "Output Answer": [ + "127" + ], + "split": "train" + }, + { + "Input": "After eating at the restaurant, Sally, Sam, and Alyssa decided to divide the bill evenly. If each person paid 45 dollars, what was the total of the bill ?", + "Output Program": [ + "peoples = 3\nbill = 45\n\ntotal_bill = peoples * bill\n\nprint(total_bill)" + ], + "Output Answer": [ + "135" + ], + "split": "train" + }, + { + "Input": "Trenton sells electronic supplies. Each week he earns 190 dollars plus commission equal to 4 % of his sales. This week his goal is to earn no less than 500 dollars. Write and solve an inequality to find the amount of sales he must make to reach his goal.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n'''\nlet x = Amount of sales to reach his goal:\n0.4%x+190\u2265500\n04x\u2265500-190\n'''\n\nx = Symbol('x')\n\nresult = solve(0.04*x - (500-190), x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "7750" + ], + "split": "train" + }, + { + "Input": "A weight of 80 pounds stretches a spring 4.5 inches. How far will a weight of 125 pounds stretch the spring?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\npound_per_inch = 80/4.5\nnumber = 125\n\nx = Symbol('x')\n\nresult = solve((x*pound_per_inch) - number, x)[0]\n\nresult = round(result, 2)\n\nprint(result)" + ], + "Output Answer": [ + "7.03" + ], + "split": "train" + }, + { + "Input": "Trenton sells electronic supplies. Each week he earns 190 dollars plus commission equal to 0.04 of his sales. This week his goal is to earn no less than 500 dollars. How much sales he must make to reach his goal?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n'''\nlet x = Amount of sales to reach his goal:\n0.4%x+190\u2265500\n04x\u2265500-190\n'''\n\nx = Symbol('x')\n\nresult = solve(0.04*x - (500-190), x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "7750" + ], + "split": "train" + }, + { + "Input": "Frank worked 8.0 hours over 4.0 days last week. If he worked the same length of time each day, how many hours did he work each day.", + "Output Program": [ + "hours = 8\ndays = 4\n\naverage = int(hours/days)\n\nprint(average)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Maggie bought 8.0 packs of yellow bouncy balls, and gave away 4.0 packs of green bouncy balls. she then bought 4.0 packs of green bouncy balls. There were 10.0 bouncy balls in each package. How many bouncy balls did Maggie keep in all.", + "Output Program": [ + "packs = 8\npacks -= 4 \npacks += 4\nballs = 10\n\ntotal = packs * balls\n\nprint(total)" + ], + "Output Answer": [ + "80" + ], + "split": "train" + }, + { + "Input": "Mary, Sam, Keith, and Alyssa each have 6 baseball cards. How many baseball cards do they have in all ?", + "Output Program": [ + "peoples = 6\ncards = 4\n\ntotal = peoples * cards\n\nprint(total)" + ], + "Output Answer": [ + "24" + ], + "split": "train" + }, + { + "Input": "Sara saw 96 birds in a tree. How many dozen birds did Sara see?", + "Output Program": [ + "birds = 96\ndozen = 12\n\naverage = int(birds/dozen)\n\nprint(average)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "586 people attend a banquet at Disney. Residents paid 12.95 dollars and non-residents paid 17.95 dollars. If Disney made 9423.70 dollars from ticket sales for the event , how many residents attended?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\npeoples = 586\nresidents_paid = 12.95\nnon_residents_paid = 17.95\n\nx = Symbol('x')\n\nnon_residents = solve((peoples-x)*residents_paid + x*non_residents_paid - 9423.70, x)[0]\n\nresidents = int(peoples - non_residents)\n\nprint(residents)" + ], + "Output Answer": [ + "219" + ], + "split": "train" + }, + { + "Input": "Marilyn has 51.0 bottle caps. Nancy gives her 36.0. How many bottle caps does Marilyn have now.", + "Output Program": [ + "caps = 51\ngot = 36\n\ntotal = caps + got\n\nprint(total)" + ], + "Output Answer": [ + "87" + ], + "split": "train" + }, + { + "Input": "University Theater sold 510 tickets for a play. Tickets cost 21 dollars per adult and 15 dollars per senior citizen. If total receipts were 8748 dollars , how many senior citizen tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 510\nb = 15\nc = 21\nd = 8748\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nsenior_citizen = int(a - result)\n\nprint(senior_citizen)" + ], + "Output Answer": [ + "327" + ], + "split": "train" + }, + { + "Input": "In a family there are two cars. The sum of the average miles per gallon obtained by the two cars in a particular week is 75 miles per gallon. The first car has consumed 25 gallons during that week , and the second has consumed 35 gallons , for a total of 2275 miles driven by the two cars combined. What was the average gas mileage obtained by the first car that week? What was the average gas mileage obtained by the second car that week?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 75\nb = 25\nc = 35\nd = 2275\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "40" + ], + "split": "train" + }, + { + "Input": "A truck and trailer together weigh 7,000 pounds. The trailer weighs 200 pounds less than 0.5 as much as the truck. Find the truck 's weight.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\npounds = 7000\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([x + y - 7000, x - 2*y - 400], (x, y)))[0]\n\nweight = answer[0]\n\nprint(weight)" + ], + "Output Answer": [ + "4800" + ], + "split": "train" + }, + { + "Input": "Alyssa's high school played 31 hockey games this year. She attended 13 games. How many hockey games did Alyssa miss ?", + "Output Program": [ + "total = 31\nattend = 13\n\nmissed = total - attend\n\nprint(missed)" + ], + "Output Answer": [ + "18" + ], + "split": "train" + }, + { + "Input": "Colored copies cost 10 cents per copy and white copies cost 5 cents per copy. Sandy made 400 copies , some of which were colored and the rest white. Her total bill was 22.50 dollars. How many colored copies did she make?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 400\nb = 10\nc = 5\nd = 22.50*100\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\ncopies = int(a - result)\n\nprint(copies)" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "Tennis rackets can be packaged in cartons holding 2 rackets each or in cartons holding 3 rackets each. Yesterday 's packing slip showed that 38 cartons were used to pack a total of 100 rackets. How many cartons of 3 rackets size were used yesterday?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 38\nb = 2\nc = 3\nd = 100\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "24" + ], + "split": "train" + }, + { + "Input": "A worker gets 60 cents an hour for ordinary time and 90 cents an hour for overtime. If she gets 32.40 dollars for a 50 hour week , how many hours are overtime?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 50\nb = 60\nc = 90\nd = 32.40*100\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "The Willey Farm Collective , farmed by several branches of the Willeys , has 4500 acres of land available for raising corn and wheat. The cost of raising corn is 42 dollars an acre , while the cost of wheat is 35 dollars an acre. The Collective 's available capital is 165,200 dollars. How many acres of wheat should the collective plant?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 4500\nb = 42\nc = 35\nd = 165200\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "3400" + ], + "split": "train" + }, + { + "Input": "Tammy drove 55.0 miles in 36.0 hours. How far did she drive during 1.0 hour.", + "Output Program": [ + "miles = 55\nhours = 36\n\naverage = round(miles/hours, 9)\n\nprint(average)" + ], + "Output Answer": [ + "1.527777778" + ], + "split": "train" + }, + { + "Input": "There are 65.0 students trying out for the school's trivia teams in each of 8.0 different schools. If 17.0 of them didn't get picked for each team, how many total students make the teams.", + "Output Program": [ + "students = 65\nleft = 17\nschools = 8\n\nteams = (students - left)*schools\n\nprint(teams)" + ], + "Output Answer": [ + "384" + ], + "split": "train" + }, + { + "Input": "Cade had 87.0 marbles. He got 8.0 from Dylan. How many does he have now.", + "Output Program": [ + "marbles = 87\ngot = 8\n\ntotal = marbles + got\n\nprint(total)" + ], + "Output Answer": [ + "95" + ], + "split": "train" + }, + { + "Input": "Betty has 3.0 boxes containing 24 oranges each. How many oranges does Betty have.", + "Output Program": [ + "boxes = 3\noranges = 24\n\ntotal = boxes * oranges\n\nprint(total)" + ], + "Output Answer": [ + "72" + ], + "split": "train" + }, + { + "Input": "Sara has saved 9 dollars from washing cars. How many dozen quarters does Sara have?", + "Output Program": [ + "dollars = 9\ndozen = 12\n\ndozen_quarter = int(((dollars/dozen)*100)/25)\n\nprint(dozen_quarter)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Jessica has 3 dozen red marbles. Sandy has 4 times more red marbles than Jessica. How many red marbles does Sandy have ?", + "Output Program": [ + "jessica = 3\ndozen = 12\njessica_marbles = jessica * dozen\ntimes = 4\nsandy_marbles = jessica_marbles * times\n\nprint(sandy_marbles)" + ], + "Output Answer": [ + "144" + ], + "split": "train" + }, + { + "Input": "Tickets to the school 's dinner theatre cost 6 dollars for children and 9 dollars for adults. 225 tickets were sold for a total of 1875 dollars. How many adults attended?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 225\nb = 9\nc = 6\nd = 1875\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nadults = int(a - result)\n\nprint(adults)" + ], + "Output Answer": [ + "175" + ], + "split": "train" + }, + { + "Input": "A waiter had 44.0 tables, but 12.0 tables have left. Each table has 8.0 customers at it, so how many customers does the waiter have now.", + "Output Program": [ + "tables = 44\nleft = 12\npeoples = 8\n\ncustomers = (tables - left) * peoples\n\nprint(customers)" + ], + "Output Answer": [ + "256" + ], + "split": "train" + }, + { + "Input": "You have space in your garden for 55 small flowering bulbs. Crocus bulbs cost 0.35 dollars each and daffodil bulbs cost 0.65 dollars each. Your budget allows you to spend 29.15 dollars on bulbs. How many crocus bulbs can you buy?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 55\nb = 0.35\nc = 0.65\nd = 29.15\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nbulbs = int(a - result)\n\nprint(bulbs)" + ], + "Output Answer": [ + "22" + ], + "split": "train" + }, + { + "Input": "Robin has 18.0 pieces of gum. Her brother gave her 44.0 more pieces. How many pieces of gum does Robin have now.", + "Output Program": [ + "gums = 18\nreceived = 44\n\ntotal = gums + received\n\nprint(total)" + ], + "Output Answer": [ + "62" + ], + "split": "train" + }, + { + "Input": "Steve invests in a circus production. The coast includes an overhead of 81,000 dollars , plus production costs of 7,000 dollars per performance. A sold-out performance brings in 16,000 dollars , Determine the number of sold-out performances , x , needed to break even.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#16,000*x = 81,000 + 7,000*x\n\nx = Symbol('x')\n\nresult = solve(16000*x - (81000 + 7000*x))[0]\n\nprint(result)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "A water flow restrictor has reduced the flow of water to 2 gallons per minute. This amount is 1 gallon per minute less than 0.6 the original flow rate. Find the original rate in gallons per minute.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\n'''\nThis amount is 1 gal/min less than three-fifths the original flow rate.\nFind the original rate.\n0.6x - 1 = 2\n'''\n\nx = Symbol('x')\n\nresult = solve(0.6*x - 1 - 2)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "Mark sprinted for 24.0 hours at 6.0 miles per hour. How far did he sprint.", + "Output Program": [ + "hours = 24\nspeed = 6\n\ndistance = hours * speed\n\nprint(distance)" + ], + "Output Answer": [ + "144" + ], + "split": "train" + }, + { + "Input": "Sara picked 61.0 peaches and had 37.0 pears at her fruit dish . She went to the orchard and picked 24.0 more peaches . How many peaches did she pick .", + "Output Program": [ + "peaches = 61\npicked = 24\n\nremaining = peaches + picked\n\nprint(remaining)" + ], + "Output Answer": [ + "85" + ], + "split": "train" + }, + { + "Input": "Jack collects baseball and football cards. He has 125 cards total. The number of baseball cards he has is five more than three times the number of football cards. How many baseball does he have?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 125\nadd = 5\ntimes = 3\n\nx = Symbol('x')\n\nresult = solve((times*x)+add + x - a, x)[0]\n\nbaseball = a - result\n\nprint(baseball)" + ], + "Output Answer": [ + "95" + ], + "split": "train" + }, + { + "Input": "Melissa scored 120.0 points in all her games total. If she played 10.0 games, how many points did she score in each game.", + "Output Program": [ + "games = 120\npoints = 10\naverage = int(games/points)\n\nprint(average)" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "The sum of 2 integers is 30. 2 times the larger integer is 10 less than 5 times the smaller integer. Find the smaller number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\n'''\nLet x and (30-x) represent the smaller and larger number respectively\n\nProblem states:\n2(30-x) = 5x -10\n'''\n\nx = Symbol('x')\n\nresult = solve((2*(30-x)) - (5*x - 10))[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "Advance tickets to a show cost 20 , and same-day tickets cost 30. The total number of tickets sold was 60 for total receipts of 1,600. How many advance tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 60\nb = 20\nc = 30\nd = 1600\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nadvance_ticket = int(a - result)\n\nprint(advance_ticket)" + ], + "Output Answer": [ + "20" + ], + "split": "train" + }, + { + "Input": "The Rocket Coaster has 15 cars , some that hold 4 people and some that hold 6 people. There is room for 72 people altogether. How many 4 passenger cars are there?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 15\nb = 4\nc = 6\nd = 72\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nfour_passenger_car = int(a - result)\n\nprint(four_passenger_car)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "A swim team has 5 times as many girls as boys. There are a total of 96 people on the swim team. How many girls are their on the team?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 96\ntimes = 5\n\nx = Symbol('x')\n\nresult = solve((times*x) + x - a, x)[0]\n\ngirls = a - result\n\nprint(girls)" + ], + "Output Answer": [ + "80" + ], + "split": "train" + }, + { + "Input": "Three times a number minus a second number is 20. The sum of the two numbers is 48. Find the smaller number.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nsmallest = min(list(linsolve([3*x - y - 20, x + y - 48], (x, y)))[0])\n\nprint(int(smallest))" + ], + "Output Answer": [ + "17" + ], + "split": "train" + }, + { + "Input": "On Monday , Harold picked up three doughnuts and four large coffees for the office staff. He paid 4.91 dollars. On Tuesday Melinda picked up five doughnuts and six large coffees for the office staff. She paid 7.59 dollars. What is the cost of one doughnut?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nharold = 4.91\nmelinda = 7.59\n\nvalues = list(linsolve([3*x + 4*y -harold , 5*x + 6*y -melinda], (x, y)))[0]\n\ndoughnut = round(values[0], 2)\n\nprint(doughnut)" + ], + "Output Answer": [ + "0.45" + ], + "split": "train" + }, + { + "Input": "Lisa took a plane trip of 256.0 miles. She took this trip 32.0 times. How many miles has she flown.", + "Output Program": [ + "miles = 256\ntimes = 32\n\nflown = miles * times\n\nprint(flown)" + ], + "Output Answer": [ + "8192" + ], + "split": "train" + }, + { + "Input": "Tickets to the school 's dinner theatre cost 6 dollars for children and 9 dollars for adults. 225 tickets were sold for a total of 1875 dollars. How many children attended?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 225\nb = 6\nc = 9\nd = 1875\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nchildren = int(a - result)\n\nprint(children)" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "The tallest player on the basketball team is 77.75 inches tall. This is 9.5 inches taller than the shortest player. How tall is the shortest player , in inches?", + "Output Program": [ + "tallest = 77.75\ndifference = 9.5\n\nshortest = tallest - difference\n\nprint(shortest)" + ], + "Output Answer": [ + "68.25" + ], + "split": "train" + }, + { + "Input": "A garden table and a bench cost 450 dollars combined. The price of the garden table is 2 times the price of the bench. What is the cost of the bench , in dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 450\ntimes = 2\n\nx = Symbol('x')\n\nresult = solve((times*x) + x - a, x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "150" + ], + "split": "train" + }, + { + "Input": "Sam had 79 dollars to spend on 9 books. After buying them he had 16 dollars. How much did each book cost ?", + "Output Program": [ + "dollars = 79-16\nbooks = 9\n\naverage = int(dollars/books)\n\nprint(average)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "Sara has 792.0 black marbles . Fred gave 233.0 black marbles to Sara. How many black marbles does Sara now have.", + "Output Program": [ + "marbles = 792\nreceived = 233\n\ntotal = marbles + received\n\nprint(total)" + ], + "Output Answer": [ + "1025" + ], + "split": "train" + }, + { + "Input": "Wal-Mart sells thermometers for 2 dollars, and hot-water bottles for 6 dollars. Total sales for these 2 items during the month of January was 1,200 dollars. There were 7 times as many thermometers as hot-water bottles sold. How many hot-water bottles?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\nt = 2\nb = 6\ntimes = 7\ndollars = 1200\n\nx = Symbol('x')\n\nresult = solve( times*x*t + x*b - dollars)[0]\n\nprint(result)" + ], + "Output Answer": [ + "60" + ], + "split": "train" + }, + { + "Input": "Emily collected 303.0 eggs from the 28.0 hens she has in her hen house. How many eggs did each hen lay.", + "Output Program": [ + "eggs = 303\nhens = 28\n\naverage = round(eggs/hens, 8)\n\nprint(average)" + ], + "Output Answer": [ + "10.82142857" + ], + "split": "train" + }, + { + "Input": "The sum of three consecutive even numbers is 162. What is the smallest of the three numbers ?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\nnumber = 162\n\nx = Symbol('x')\n\nresult = solve(x + (x + 2) + (x + 4) - number)[0]\n\nprint(result)" + ], + "Output Answer": [ + "52" + ], + "split": "train" + }, + { + "Input": "Find the larger number whose sum is 147 and one is 4 greather than 0.375 of the other.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\nnumber = 147\ngreater = 4\ntimes = 0.375\n\nx = Symbol('x')\n\nresult = int(solve((x * times + greater) + x - number)[0])\n\nprint(result)" + ], + "Output Answer": [ + "104" + ], + "split": "train" + }, + { + "Input": "Find the larger of two numbers whose sum is 55 and whose difference is 15.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nsum = 55\ndifference = 15\n\nvalues = list(linsolve([x + y - sum , x - y - difference], (x, y)))[0]\n\nlargest = int(max(values))\n\nprint(largest)" + ], + "Output Answer": [ + "35" + ], + "split": "train" + }, + { + "Input": "You and a friend go to a Mexican restaurant. You order 2 tacos and 3 enchiladas , and your friend orders 3 tacos and 5 enchiladas. Your bill is 7.80 dollars plus tax , and your friend 's bill is 12.70 dollars plus tax. How much , in dollars , does each taco cost?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 7.80\nb = 12.70\n\nvalues = list(linsolve([2*x + 3*y - a , 3*x + 5*y - b], (x, y)))[0]\n\ntaco = round(values[0], 1)\n\nprint(taco)" + ], + "Output Answer": [ + "0.9" + ], + "split": "train" + }, + { + "Input": "Sara has 192 golf balls. How many dozen golf balls does she have?", + "Output Program": [ + "balls = 192\ndozen = 12\n\naverage = int(balls/dozen)\n\nprint(average)" + ], + "Output Answer": [ + "16" + ], + "split": "train" + }, + { + "Input": "36 more than the product of three and x is the same as 48. Solve for x.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ngreater = 36\ntimes = 3\ntotal = 48\n\nx = Symbol('x')\n\nresult = solve(times*x+greater - total, x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Nancy, Melanie, Mary, and Alyssa each bought 540 baseball cards, which come in packs of 20. How many packs of baseball cards do they have in all?", + "Output Program": [ + "peoples = 4\ncards = 540\npacks = 20\n\naverage = cards/packs\n\ntotal = int(average * peoples)\n\nprint(total)" + ], + "Output Answer": [ + "108" + ], + "split": "train" + }, + { + "Input": "If Lucy has a tank with 212.0 fish and she moves 68.0 of them into a different tank, how many are left in the first tank.", + "Output Program": [ + "tank = 212\nmoved = 68\n\nremaining = tank - moved\n\nprint(remaining)" + ], + "Output Answer": [ + "144" + ], + "split": "train" + }, + { + "Input": "24 is divided into two parts such that 7 times the first part added to 5 times the second part makes 146. Find the bigger part.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\nx = Symbol('x')\n\nresult = solve(7*x + 5*(24 - x) - 146)[0]\n\nprint(result)" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "A worker at a medical lab is studying blood samples. Two samples contained a total of 7,341 blood cells. The first sample contained 4,221 blood cells. How many blood cells were in the second sample?", + "Output Program": [ + "total = 7431\nfirst = 4221\n\nsecond = total - first\n\nprint(second)" + ], + "Output Answer": [ + "3120" + ], + "split": "train" + }, + { + "Input": "A concert sells out a 20,000 seat arena. Main seat tickets cost 55 dollars , and back seat tickets for 45 dollars. The concert made 955,000 dollars. How many back seat tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 20000\nb = 45\nc = 55\nd = 955000\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "14500" + ], + "split": "train" + }, + { + "Input": "Mrs. Hilt read 17.0 chapters in 4.0 books. How many chapters did each book have in it.", + "Output Program": [ + "chapter = 17\nbooks = 4\n\naverage = chapter / books\n\nprint(average)" + ], + "Output Answer": [ + "4.25" + ], + "split": "train" + }, + { + "Input": "A pet store had 18.0 puppies. In 1.0 day, they buy 3.0 puppies and put all of them into cages with 5.0 in each cage. How many cages did they use.", + "Output Program": [ + "puppies = 18\nbuy = 3\ncages = 5\n\naverage = (puppies + buy) / cages\n\nprint(average)" + ], + "Output Answer": [ + "4.2" + ], + "split": "train" + }, + { + "Input": "There were 10.0 students riding on the school bus. At the first stop, 3.0 students got on the bus. How many students are now on the bus.", + "Output Program": [ + "students = 10\nadded = 3\n\ntotal = students + added\n\nprint(total)" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "An employment agency specializing in temporary help pays heavy operators 129 dollars per day and general laborers 82 dollars per day. If 31 people were hired and the payroll was 3952 dollars , how many laborers were employed?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 31\nb = 129\nc = 82\nd = 3952\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "1" + ], + "split": "train" + }, + { + "Input": "In fourth grade there were 42.0 students at the start of the year. During the year, 4.0 students left, and 10.0 students were transferred to fifth grade. How many students were in fourth grade at the end.", + "Output Program": [ + "students = 42\nleft = 4\ntransferred = 10\n\ntotal = students - left - transferred\n\nprint(total)" + ], + "Output Answer": [ + "28" + ], + "split": "train" + }, + { + "Input": "A movie theater charges 7 dollars for an adult and 4 dollars for a child 's ticket. One night , 900 tickets were sold for a total of 5,100 dollars. How many adult tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 900\nb = 7\nc = 4\nd = 5100\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "500" + ], + "split": "train" + }, + { + "Input": "There are 4.0 oranges. If there are 3.0 children, how many oranges are there per child.", + "Output Program": [ + "oranges = 4\nchildren = 3\n\naverage = round(oranges / children, 2)\n\nprint(average)" + ], + "Output Answer": [ + "1.333333333" + ], + "split": "train" + }, + { + "Input": "A local bus tour sold 65 tickets. Senior citizen tickets cost 10 dollars and regular tickets cost 15 dollars. The total sales were 855 dollars. How many senior citizen tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 65\nb = 10\nc = 15\nd = 855\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "24" + ], + "split": "train" + }, + { + "Input": "Two times the first number is one more than the second number. If their sum is -64 , what is the bigger number?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\n\nvalues = list(linsolve([2*x - y + 1 + 64, x + y + 64], (x, y)))[0]\n\nanswer = max(values)\n\nprint(answer)" + ], + "Output Answer": [ + "-21" + ], + "split": "train" + }, + { + "Input": "If Benjamin skated at 80.0 kilometers per hour, how far would Benjamin skate in 10 hours.", + "Output Program": [ + "skated = 80\nhours = 10\n\ntravels = skated * hours\n\nprint(travels)" + ], + "Output Answer": [ + "800" + ], + "split": "train" + }, + { + "Input": "A movie theater charges 7 dollars for an adult and 4 dollars for a child 's ticket. One night , 900 tickets were sold for a total of 5,100 dollars. How many child 's tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 900\nb = 4\nc = 7\nd = 5100\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "400" + ], + "split": "train" + }, + { + "Input": "Max bought 16 pounds of nuts at a party. The total cost was 72 dollars. The peanuts cost 3 dollars per pound and the almounds cost 5 dollars per pound. How many pounds of peanuts did max buy?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 16\nb = 5\nc = 3\nd = 72\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "There are 38.0 books on the shelf. Marta takes 10.0 books off the shelf. How many books are on the shelf now.", + "Output Program": [ + "\nbooks = 38\nremoved = 10\n\nremaining = books - removed\n\nprint(remaining)" + ], + "Output Answer": [ + "28" + ], + "split": "train" + }, + { + "Input": "A store had 40.0 coloring books in stock. They acquired 20.0 more books. They put them on shelves with 4.0 on each shelf. How many shelves did they use.", + "Output Program": [ + "books = 40\nadded = 20\nshelve = 4\n\naverage = int((books + added)/shelve)\n\nprint(average)" + ], + "Output Answer": [ + "15" + ], + "split": "train" + }, + { + "Input": "An ice skating rink charges 5 dollars for admission and 2.50 dollars to rent skates. Jill can purchase a new pair of skates for 65 dollars. How many times would she need to go the rink to justify buying the skates rather than renting a pair?", + "Output Program": [ + "\nrent = 2.5\nskates = 65\n\na = int(skates/rent)\n\nprint(a)" + ], + "Output Answer": [ + "26" + ], + "split": "train" + }, + { + "Input": "Stan invested 17,000 dollars , part at 18 % and part at 4 %. If the total interest at the end of the year is 1,380 dollars , how much did he invest at 4 %?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([0.18*x + 0.04*y - 1380, x + y - 17000], (x, y)))[0]\n\nanswer = round(answer[1], 1)\n\nprint(answer)" + ], + "Output Answer": [ + "12000" + ], + "split": "train" + }, + { + "Input": "There were 610 people at a play. The admission price was 2 dollars for adults and 1 dollars for children. The admission receipts were 960 dollars. How many children attended?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 610\nb = 1\nc = 2\nd = 960\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "260" + ], + "split": "train" + }, + { + "Input": "A store is selling compact discs for 10.50 dollars and 8.50 dollars. You buy 10 discs and spend a total of 93 dollars. How many did you buy that cost 8.50 dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 10\nb = 10.50\nc = 8.50\nd = 93\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "6" + ], + "split": "train" + }, + { + "Input": "Melanie has 41.0 books in her library . She bought 87.0 books at a yard sale over the weekend . How many books does she have .", + "Output Program": [ + "books = 41\nbought = 87\n\ntotal = books + bought\n\nprint(total)" + ], + "Output Answer": [ + "128" + ], + "split": "train" + }, + { + "Input": "A fruit farm packs oranges in boxes that hold 10.0 each. If they pack 2650.0 boxes in 1.0 day, how many oranges do they have.", + "Output Program": [ + "oranges = 10\nboxes = 2650\n\ntotal = oranges * boxes\n\nprint(total)" + ], + "Output Answer": [ + "26500" + ], + "split": "train" + }, + { + "Input": "Fred has 40 baseball cards. Keith bought 22 of Fred's baseball cards. How many baseball cards does Fred have now ?", + "Output Program": [ + "baseball = 40\nbought = 22\n\nleft = baseball - bought\n\nprint(left)" + ], + "Output Answer": [ + "18" + ], + "split": "train" + }, + { + "Input": "Ilida went to Minewaska Sate Park one day this summer. All of the people at the park were either hiking or bike riding. There were 178 more hikers than bike riders. If there were a total of 676 people at the park , how many were riding their bikes?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([x + y - 676, x + 178 + x - 676], (x, y)))[0]\n\nanswer = int(answer[0])\n\nprint(answer)" + ], + "Output Answer": [ + "249" + ], + "split": "train" + }, + { + "Input": "With a tail wind , a jet flew 2000 miles in 4 hours. The jet 's return trip against the same wind required 5 hours. Find the wind speed.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 2000/4\nb = 2000/5\n\nanswer = list(linsolve([(x + y) - a, (x - y) - b], (x, y)))[0]\n\nanswer = int(answer[1])\n\nprint(answer)" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "A rancher raises 5 times as many cows as horses. If he has 168 animals , how many cows does he have?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nnumber = 168\n\nx = Symbol('x')\n\nresult = solve(5*x + x - number, x)[0]\n\nresult = number - result \n\nprint(result)" + ], + "Output Answer": [ + "140" + ], + "split": "train" + }, + { + "Input": "Six apples and three oranges cost 1.77 dollars. Two apples and five oranges cost 1.27 dollars. Find the cost of each apple", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 1.77\nb = 1.27\n\nvalues = list(linsolve([6*x + 3*y - a , 2*x + 5*y - b], (x, y)))[0]\n\nanswer = round(values[0], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "0.21" + ], + "split": "train" + }, + { + "Input": "Alyssa spent half of her allowance going to the movies. She washed the family car and earned 8 dollars. What is her weekly allowance if she ended with 12 dollars ?", + "Output Program": [ + "received = 9\nended = 13\n\nstarts_with = ended - received\n\nweekly = starts_with * 2\n\nprint(weekly)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "254 people go to a zoo. Tickets are 28 dollars for adults and 12 dollars for kids. Total sales are 3,864 dollars. How many adults went to zoo?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 254\nb = 28\nc = 12\nd = 3864\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "51" + ], + "split": "train" + }, + { + "Input": "A boat travels 45 miles upstream in 5 hours. The boat travels the same distance downstream in 3 hours. What is the speed of the boat in still water in miles per hour?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([5*(x-y) - 45, 3*(x+y) - 45], (x, y)))[0]\n\nanswer = int(answer[0])\n\nprint(answer)" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Keith grew 6 turnips. Alyssa grew 9 turnips. How many turnips did they grow in all ?", + "Output Program": [ + "turnips = 6\ngrow = 9\n\ntotal =- turnips + grow\n\nprint(total)" + ], + "Output Answer": [ + "15" + ], + "split": "train" + }, + { + "Input": "The sum of 0.75 of a number and two is eight. Find the number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 0.75\nnumber = 8\n\nx = Symbol('x')\n\nresult = solve((0.75*x) + 2 - 8)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "A restaurant sold 8 pies every day for a week. How many pies were sold during the week ?", + "Output Program": [ + "pies = 8\ndays = 7\n\ntotal = pies * days\n\nprint(total)" + ], + "Output Answer": [ + "56" + ], + "split": "train" + }, + { + "Input": "There are 58.0 geese and 37.0 ducks in the marsh. How many more geese are there than ducks.", + "Output Program": [ + "geese = 58\nducks = 37\n\ncomparison = geese - ducks\n\nprint(comparison)" + ], + "Output Answer": [ + "21" + ], + "split": "train" + }, + { + "Input": "A building with 12 units consists of 1 bedrooms costing 360 dollars and 2 bedrooms costing 450 dollars respectively. When all units are full the total is 4950 dollars. How many 2 bedroom units are there?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 0.75\nnumber = 8\n\nx = Symbol('x')\n\nresult = solve(450*x + 360*(12-x) - 4950)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "The Red Rose Theatre sells tickets for 4.50 dollars and 6.00 dollars. A total of 380 tickets were sold for their last performance of `` Mickey the Mouse ''. If the sales for the performance totaled 1972.50 dollars , How many tickets were sold for 4.50 dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 380\nb = 4.50\nc = 6.00\nd = 1972.50\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "205" + ], + "split": "train" + }, + { + "Input": "How many plants should be planted per column if you have 52 plants and 15 columns in all.", + "Output Program": [ + "plants = 52\ncolumns = 15\n\naverage = round(plants/columns, 9)\n\nprint(average)" + ], + "Output Answer": [ + "3.46666666699999" + ], + "split": "train" + }, + { + "Input": "I walked 8.0 miles in 2.0 hours for Relay for Life. If I maintained the same pace, how many miles did I walk in 1.0 hour.", + "Output Program": [ + "miles = 8\nhours = 2\none_hour = 1\n\naverage = miles/hours\n\nwalked = average * one_hour\n\nprint(walked)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Heather starts with 86.0 blocks. Jose shares 41.0 with her. How many blocks does Heather end with.", + "Output Program": [ + "blocks = 86\ngot = 41\n\ntotal = blocks + got\n\nprint(total)" + ], + "Output Answer": [ + "127" + ], + "split": "train" + }, + { + "Input": "Fred has 709 green balloons, he gave Sandy 221 of the balloons. How many green balloons does he now have ?", + "Output Program": [ + "ballons = 709\ngave = 221\n\nremaining = ballons - gave\n\nprint(remaining)" + ], + "Output Answer": [ + "488" + ], + "split": "train" + }, + { + "Input": "There are 3.0 boats on the lake. There are 5.0 people total in the boats. How many people are in each boat on average.", + "Output Program": [ + "boats = 3\npeoples = 5\n\naverage = round(peoples / boats, 9)\n\nprint(average)" + ], + "Output Answer": [ + "1.66666666699999" + ], + "split": "train" + }, + { + "Input": "Cashews sell for 5.00 dollars a pound and peanuts sell for 2.00 dollars a pound. How many pounds of cashews would you use to make 25 pounds of a mixure that sells for 92 dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 25\nb = 2\nc = 5\nd = 92\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "The state market has 27 more apples than oranges. There are 301 apples and oranges all together. How many apples are in the market?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nx = Symbol('x')\n\nnumber = 301\n\nresult = solve( x+27 + x - number, x)[0]\n\nresult = number - result\n\nprint(result)" + ], + "Output Answer": [ + "164" + ], + "split": "train" + }, + { + "Input": "Martin drove to Lawrence's house. Martin drove 12.0 miles per hour. It took Martin 6.0 hours to get there. How far did Martin go.", + "Output Program": [ + "miles = 12\n\nhours = 6\n\ntotal = miles * hours\n\nprint(total)" + ], + "Output Answer": [ + "72" + ], + "split": "train" + }, + { + "Input": "If 3.5 pounds of ground beef costs 9.77 dollars , how much does 5.6 pounds of ground beef cost?", + "Output Program": [ + "dollars = 9.77\npound = 3.5\n\nprice = 5.6\n\naverage = dollars/pound\n\nanswer = round(average * price, 2)\n\nprint(answer)" + ], + "Output Answer": [ + "15.62" + ], + "split": "train" + }, + { + "Input": "Juan ran 80.0 hours at 10.0 miles per hour. How far did Juan run.", + "Output Program": [ + "ran = 80\nspeed = 10\n\ndistance = ran*speed\n\nprint(distance)" + ], + "Output Answer": [ + "800" + ], + "split": "train" + }, + { + "Input": "The length of a rectangular field is 24 meters. This is 3 meters less than twice the width. Find the width.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nx = Symbol('x')\n\nnumber = 24\n\nresult = float(solve( 2*x-3 - number, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "13.5" + ], + "split": "train" + }, + { + "Input": "3 Pairs of jeans and 6 shirts costs 104.25 dollars. The cost of 4 jeans and 5 shirts is 112.15 dollars. Find the cost of each pair of jeans?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 104.25\nb = 112.15\n\nvalues = list(linsolve([3*x + 6*y - a , 4*x + 5*y - b], (x, y)))[0]\n\nanswer = round(values[0], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "16.85" + ], + "split": "train" + }, + { + "Input": "Tickets to a local movie were sold at 4 dollars for adults and 2.50 dollars for students. If 59 tickets were sold for a total of 222.50 dollars , how many student tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 59\nb = 2.50\nc = 4\nd = 222.50\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "Stefans school is selling tickets to a choral performance. On the first day of ticket sales the school sold 4 senior citizen tickets and 3 student tickets for 79 dollars. The school took 246 dollars on the second day by selling 12 senior citizen tickets and 10 student tickets. Find the price of a student ticket.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 79\nb = 246\na_x = 4\na_y = 3\nb_x = 12\nb_y = 10\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "For his long distance phone service Milan pays a 2 dollars monthly fee plus 12 cents per minute. Last month , Milan 's long distance bill was 23.36 dollars. For how many minutes was Milan billed for ?", + "Output Program": [ + "monthly = 2\nminutes_cent = 12\nbill = 23.36\nmonth = 1\n\nmonth_charge = bill - (monthly/month)\n\ntotal_minutes = int(((month_charge) * 100)/12)\n\nprint(total_minutes)" + ], + "Output Answer": [ + "178" + ], + "split": "train" + }, + { + "Input": "You are reading 120.0 pages of a book each night for 10.0 days. How many pages is the book.", + "Output Program": [ + "pages = 120\nbooks = 10\n\ntotal = pages*books\n\nprint(total)" + ], + "Output Answer": [ + "1200" + ], + "split": "train" + }, + { + "Input": "Jason had Pokemon cards. He gave 9 Pokemon cards to his friends. He now has 4 Pokemon cards left. How many Pokemon cards did he have to start with ?", + "Output Program": [ + "cards = 4\ngave = 9\n\nstart_with = cards + gave\n\nprint(start_with)" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "At the schools book fair Sam bought 13.0 used adventure books and 17.0 used mystery books. If he also bought 15.0 new crime books, how many books did he buy.", + "Output Program": [ + "adventure = 13\nmystery = 17\ncrime = 15\n\nbooks = adventure + mystery + crime\n\nprint(books)" + ], + "Output Answer": [ + "45" + ], + "split": "train" + }, + { + "Input": "You are running a concession stand. You are selling hot dogs and soda. Each hot dog costs 1.50 dollars and each soda costs 0.50 dollars. You made a total of 78.50 dollars. You sold a total of 87 hot dogs and sodas combined. You must report the number of hot dogs and sodas sold. How many hot dogs were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 87\nb = 1.50\nc = 0.50\nd = 78.50\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "35" + ], + "split": "train" + }, + { + "Input": "It takes a boat 4 hours to travel 24 miles down a river and 6 hours to return upstream to its starting point. What is the rate of the current in the river?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 24/4\nb = 24/6\n\nanswer = list(linsolve([x + y - a, x - y - b], (x, y)))[0]\n\nanswer = int(answer[1])\n\nprint(answer)" + ], + "Output Answer": [ + "1" + ], + "split": "train" + }, + { + "Input": "Sara goes fishing with Melanie. Sara catches 5 trout. Melanie catches 2 times as many trout as Sara. How many trout did Melanie catch ?", + "Output Program": [ + "sara = 5\ntimes = 2\nmelanie = sara * times\n\nprint(melanie)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "Your teacher is giving you a test worth 100 points containing 40 questions. There are 2-point and 4-point questions on the test. How many questions are worth four points?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 40\nb = 2\nc = 4\nd = 100\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "Jesse's 3.0 friends have 21.0 bananas each. How many bananas do they have in total.", + "Output Program": [ + "friends = 3\nbananas = 21\n\ntotal = friends * bananas \n\nprint(total)" + ], + "Output Answer": [ + "63" + ], + "split": "train" + }, + { + "Input": "A chocolate chip cookie recipe calls for 2.0 cups of chocolate chips. If you have 23.0 cups of chocolate chips, how many batches can you make.", + "Output Program": [ + "chips = 23\nbatches = 2\n \ntotal_batches = chips/batches\n\nprint(total_batches)" + ], + "Output Answer": [ + "11.5" + ], + "split": "train" + }, + { + "Input": "Sally grew 6 carrots. Fred grew 4 carrots. How many carrots did they grow in all ?", + "Output Program": [ + "sally = 6\nfred = 4\n\ntotal = sally + fred\n\nprint(total)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "White vinegar is a solution of acetic acid in water. There are two strengths of white vinegar , a 5 % solution and a 10 % solution. How many milliliters of each solution must be mixed to make 50 milliliters of a 9 % vinegar solution?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#0.05x + 0.10(50-x) = 0.09*50\n\nx = Symbol('x')\n\nresult = solve(0.05*x + 0.10*(50-x) - (0.09)*50)[0]\n\nprint(result)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "Alyssa has 36 books. Nancy has 7 times more books than Alyssa. How many books does Nancy have ?", + "Output Program": [ + "alyssa = 36\ntimes = 7\n\nnancy = alyssa * times\n\nprint(nancy)" + ], + "Output Answer": [ + "252" + ], + "split": "train" + }, + { + "Input": "Tickets cost 4 dollars for students , and 6 dollars for general admission. You sell 525 tickets and collect 2876 dollars. How many general admission tickets did you sell?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 525\nb = 6\nc = 4\nd = 2876\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "388" + ], + "split": "train" + }, + { + "Input": "Gino has 63.0 popsicle sticks and gives 50.0 of them to me. How many popsicle sticks does he have left.", + "Output Program": [ + "popsicle = 63\ngave = 50\n\nremaining = popsicle - gave\n\nprint(remaining)" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "Colombian coffee beans cost 5.50 dollars per pound, while Peruvian coffee beans cost 4.25 dollars per pound. We want to mix the beans together so as to produce a 40-pound bag , costing 4.60 dollars per pound. How many pounds of Columbian beans should be used?", + "Output Program": [ + "columbian_coffee_rate=5.50\nperuvian_coffee_rate=4.25\ntotal_coffee_weight=40\nfinal_coffee_rate=4.60\ncolumbian_coffee_weight=((final_coffee_rate*total_coffee_weight)-(peruvian_coffee_rate*total_coffee_weight))/(columbian_coffee_rate-peruvian_coffee_rate)\nprint(columbian_coffee_weight)\n", + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([x + y - 40, 5.5*x + 4.25*y - 4.6*40], (x, y)))[0]\n\nanswer = round(answer[1], 1)\n\nprint(answer)" + ], + "Output Answer": [ + "28.8", + "11.2" + ], + "split": "train" + }, + { + "Input": "A high school sold gift wrap. The gift wrap in solid colors sold for 4.00 dollars per roll and the print gift wrap sold for 6.00 dollars per roll. The total number of rolls sold was 480 rolls , and the total amount of money collected was 2,340.00 dollars. How many print rolls were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 480\nb = 4\nc = 6\nd = 2340\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "210" + ], + "split": "train" + }, + { + "Input": "During 2005 major league baseball season , the Chicago White Sox played 162 games. They won 36 more than they lost. How many games \ndid they lose?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nnumber = 162\n\nx = Symbol('x')\n\nresult = solve( x+36 + x - number)[0]\n\n\nprint(result)" + ], + "Output Answer": [ + "63" + ], + "split": "train" + }, + { + "Input": "The admission fee at an amusement park is 1.5 dollars for children and 4 dollars for adults. On a certain day 315 people entered the park , and the admission fees collected 810 dollars. How many children were admitted?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 315\nb = 4\nc = 1.5\nd = 810\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "180" + ], + "split": "train" + }, + { + "Input": "Jesse's room needs 12.0 square feet of carpet. Her room is 8 feet wide. How long is her other wall.", + "Output Program": [ + "square = 12\nwide = 8\n\nwall = square /wide\n\nprint(wall)" + ], + "Output Answer": [ + "1.5" + ], + "split": "train" + }, + { + "Input": "If Anne wandered for 3.0 miles at 2.0 miles per hour, how long did she wander .", + "Output Program": [ + "miles = 3\nspeed = 2\n\nwandered = miles/speed\n\nprint(wandered)" + ], + "Output Answer": [ + "1.5" + ], + "split": "train" + }, + { + "Input": "Tickets for a play at the community theater cost 12 dollars for an adult and 4 dollars for a child. If 130 tickets were sold and the total receipts were 840 dollars , how many adult tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 130\nb = 12\nc = 4\nd = 840\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "40" + ], + "split": "train" + }, + { + "Input": "For Halloween Megan received 11.0 pieces of candy from neighbors and 5.0 pieces from her older sister. If she only ate 8.0 pieces a day, how long would the candy last her.", + "Output Program": [ + "neighbours = 11\nsister = 5\neat = 8\n\ncandies_a_day = (neighbours + sister) // eat\n\nprint(candies_a_day)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Jason earns 4.00 dollars per hour working after school and he earns 6.00 dollars per hour working on Saturday. If he works 18 hours in a week and earned 88.00 dollars , how many hours did he work on Saturday?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 18\nb = 6\nc = 4\nd = 88\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "1 blend of coffee sells for 9.00 dollars per pound and another blend sells for 8.00 dollars per pound. You want to make a 20 pound blend that sells for 8.40 dollars per pound. How many pounds of the 9 dollars per pound coffee do you need?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 20\nb = 9\nc = 8\nd = 8.40*20\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "8" + ], + "split": "train" + }, + { + "Input": "Evelyn starts with 63.0 bottle caps. She lost 18.0 bottle caps . How many bottle caps does Evelyn end with.", + "Output Program": [ + "start = 63\nlost = 18\n\nremaining = start - lost\n\nprint(remaining)" + ], + "Output Answer": [ + "45" + ], + "split": "train" + }, + { + "Input": "Maggie has a job working in an office for 10 dollars an hour and another job driving a tractor for 12 dollars an hour. One week she works in the office twice as long as she drives the tractor. Her total income for that week is 416 dollars. How many hours did she spend driving the tractor?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#10*(2x) + 12x = 416\n\nx = Symbol('x')\n\nresult = solve(10*2*x + 12*x - 416)[0]\n\nprint(result)" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "Separate 66 into 2 parts so that 0.40 of one part exceeds 0.625 of the other part by 10. What is the larger part?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nx = Symbol('x')\n\nresult = solve(0.40*x - 0.625*(66 - x) - 10)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "One number is 3 more than twice a second number. Their sum is 27. Find the larger number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 2\nnumber = 27\ngreater = 3\n\nx = Symbol('x')\n\nresult = solve( times*x+greater + x - number)[0]\n\nanswer = number - result\n\nprint(answer)" + ], + "Output Answer": [ + "19" + ], + "split": "train" + }, + { + "Input": "Joshua has 6.0 eggs and gave 40.0 Skittles each to 5.0 friends. How many Skittles do his friends have in all.", + "Output Program": [ + "skittles = 40\nfriends = 5\n\ntotal = skittles * friends\n\nprint(total)" + ], + "Output Answer": [ + "200" + ], + "split": "train" + }, + { + "Input": "The sum of 2 numbers is 50. The first number is 43 less than twice the second number. Find the larger number.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nvalues = list(linsolve([x + y - 50 , x + 2*x-43 - 50], (x, y)))[0]\n\nanswer = max(values)\n\nprint(answer)" + ], + "Output Answer": [ + "31" + ], + "split": "train" + }, + { + "Input": "There are 3 more girls than boys in Tom 's class , and the sum of girls and boys is 41. How many girls are in the class?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 3\nnumber = 41\n\nx = Symbol('x')\n\nresult = solve( times+x + x - number)[0]\n\nanswer = number - result\n\nprint(answer)" + ], + "Output Answer": [ + "22" + ], + "split": "train" + }, + { + "Input": "A self-employed contractor nearing retirement made two investments totaling 15,000 dollars. In one year , these investments yielded 1023 dollars in simple interest. Part of the money was invested at 6 % and the rest at 7.5 %. How much was invested at 6% rate?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nnumber= 15000\n\nx = Symbol('x')\n\nresult = solve(0.06*x + 0.075*(number-x) - 1023)[0]\n\nanswer = number - result\n\nprint(int(answer))" + ], + "Output Answer": [ + "8200" + ], + "split": "train" + }, + { + "Input": "Priya has prepared 54.0 cupcakes already for a birthday party. She needs to also buy 15.0 chocolate cupcakes and 25.0 vanilla cupcakes. How many cupcakes will Priya be taking to the party.", + "Output Program": [ + "prepared = 54\nchocolate = 15\nvanilla = 25\n\ntotal = prepared + chocolate + vanilla\n\nprint(total)" + ], + "Output Answer": [ + "94" + ], + "split": "train" + }, + { + "Input": "Dan bought 9 dozen eggs from the grocery store to bake some cakes. How many eggs did Dan buy ?", + "Output Program": [ + "dozen = 12\neggs = 9\n\ntotal = dozen * eggs\n\nprint(total)" + ], + "Output Answer": [ + "108" + ], + "split": "train" + }, + { + "Input": "Your cell phone company offers two text-messaging plans. Plan A costs 0.25 dollars per text message , plus a monthly fee of 9 dollars. The other plan costs 0.40 dollars per text message with no monthly fee. For how many text messages will both plans cost the same amount?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#0.25x+9=0.40x\n\nx = Symbol('x')\n\nresult = solve(0.25*x + 9 - 0.40*x)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "60" + ], + "split": "train" + }, + { + "Input": "Tim has 44 books. Sam has 52 books. How many books do they have together ?", + "Output Program": [ + "tim = 44\nsam = 52\n\ntotal = tim + sam\n\nprint(total)" + ], + "Output Answer": [ + "96" + ], + "split": "train" + }, + { + "Input": "River Joes 's Seafood Diner charges 6.00 dollars for a catfish dinner and 3.50 dollars for an order of popcorn shrimp. After filling 26 orders , River Joe had collected 133.50 dollars. How many orders of popcorn shrimp dinners did they sell?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 26\nb = 3.50\nc = 6\nd = 133.50\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "When Mariela was hospitalized, she got 287.0 get well cards from friends and family at home out of the 403.0 get well cards that she got. How many get well cards did Mariela get from around the country.", + "Output Program": [ + "total = 403\ngot = 287\n\nout_of_country = total - got\n\nprint(out_of_country)" + ], + "Output Answer": [ + "116" + ], + "split": "train" + }, + { + "Input": "Peter sold pumpkins from his farm. He sold jumbo pumpkins for 9.00 dollars each , and he sold regular pumpkins for 4.00 dollars each. Peter sold 80 pumpkins and collected 395.00 dollars. How many and regular pumpkins did he sell?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 80\nb = 9\nc = 4\nd = 395\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)", + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 80\nb = 9\nc = 4\nd = 395\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "65", + "5" + ], + "split": "train" + }, + { + "Input": "There are 150.0 people on the sprint team. If they all run 5.0 miles each, how many miles will they run in total.", + "Output Program": [ + "peoples = 150\n\nmiles = 5\n\ntotal = peoples * miles\n\nprint(total)" + ], + "Output Answer": [ + "750" + ], + "split": "train" + }, + { + "Input": "Mildred collects 77.0 oranges. Mildred's father eats 2.0 of them. How many oranges does Mildred have now.", + "Output Program": [ + "oranges = 77\nate = 2\n\nremaining = oranges - ate \n\nprint(remaining)" + ], + "Output Answer": [ + "75" + ], + "split": "train" + }, + { + "Input": "0.5 of the students in the band are in the trumpet section. 0.125 of the students in the band are in the trombone section. What fraction of the students in the band are in either the trumpet section or the trombone section?", + "Output Program": [ + "trumpet = 0.5\ntrombone = 0.125\n\nfractions = trumpet * trombone\n\nprint(fractions)" + ], + "Output Answer": [ + "0.625" + ], + "split": "train" + }, + { + "Input": "Our class got 54.0 books from the library. Then we gave 23.0 away to a different class. How many books from the library does our class have left.", + "Output Program": [ + "library = 54\ngave = 23\n\nremaining = library - gave\n\nprint(remaining)" + ], + "Output Answer": [ + "31" + ], + "split": "train" + }, + { + "Input": "The sum of 2 numbers is 50. The first number is 43 less than twice the second number. Find the smaller number.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nvalues = list(linsolve([x + y - 50 , x + 2*x-43 - 50], (x, y)))[0]\n\nanswer = min(values)\n\nprint(answer)" + ], + "Output Answer": [ + "19" + ], + "split": "train" + }, + { + "Input": "Barbara has 18.0 candies. She uses 9.0. How many candies does Barbara have left.", + "Output Program": [ + "candies = 18\nused = 9\n\nremaining = candies - used\n\nprint(remaining)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "Sara picked 6 pears and Tim picked 5 pears from the pear tree. How many pears were picked in total ?", + "Output Program": [ + "sara = 6\ntim = 5\ntotal = sara + tim" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "The Booster Club voted on where they would go for their annual trip. A majority of the club voted to go to a baseball game. They bought 29 tickets. Some of the tickets cost 7 dollars per ticket and some cost 9 dollars per ticket. All of the tickets cost 225 dollars. How many 9-dollar tickets did they buy?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 29\nb = 7\nc = 9\nd = 225\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "Admission to an amusement park is 8 dollars for adults and 5 dollars for children. If 201 dollars was paid for 33 tickets , How many children 's tickets were purchased?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 33\nb = 5\nc = 8\nd = 201\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "21" + ], + "split": "train" + }, + { + "Input": "Connie has 323 marbles. Juan has 175 more marbles than Connie. How many marbles does Juan have?", + "Output Program": [ + "connie = 323\ncomparison = 175\n\njuan = comparison + connie\n\nprint(juan)" + ], + "Output Answer": [ + "498" + ], + "split": "train" + }, + { + "Input": "You have collected 7.0 crickets. Then you find 11.0 crickets more, how many crickets do you have.", + "Output Program": [ + "collected = 7\nfound = 11\n\ncrickets = collected + found\n\nprint(crickets)" + ], + "Output Answer": [ + "18" + ], + "split": "train" + }, + { + "Input": "Jane has a dress shop. She has space for 200 dresses. She sells only red and blue dresses. After reading several fashion magazines she decides to stock her shelves with 34 more blue dresses than red dresses. How many and red dresses should she stock?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# red_dress = number of red dresses, blue_dress = number of blue dresses\nrd, bd = symbols('red_dress, blue_dress')\n\neq1 = Eq(rd+bd, 200)\neq2 = Eq(bd, rd+34)\n\nanswer_dict = solve((eq1, eq2), (rd, bd))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['red_dress'])" + ], + "Output Answer": [ + "83" + ], + "split": "train" + }, + { + "Input": "A book store had 41.0 books in the bargin bin. If they added 33.0 books, and then put 2.0 more in the bin, how many books did they have total.", + "Output Program": [ + "books = 41\nadded = 33\nbin = 2\n\ntotal = books + added + bin\n\nprint(total)" + ], + "Output Answer": [ + "76" + ], + "split": "train" + }, + { + "Input": "Tickets for adults are 5.50 dollars and tickets for children are 3.50 dollars. How many adult tickets if 21 tickets were bought for 83.50 dollars?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 21\nb = 5.50\nc = 3.50\nd = 83.50\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "In 1.0 part of the park, there are 5.0 dogwood trees. Park workers plan to cut down 7.0 dogwood trees today. In another part of the park, there are 4.0 dogwood trees. 8.0 park workers are on the job. After they are done with their work, how many dogwood tress will be left in the park.", + "Output Program": [ + "one_part_dogwood_trees = 5\nsecond_part_dogwood_trees = 4\n\ncut_down = 7\n\nremaining_dogwood_trees = (one_part_dogwood_trees + second_part_dogwood_trees) - cut_down\n\nprint(remaining_dogwood_trees)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "At its Grand Opening , the Guthrie Market distributed two different types of souvenirs. One type cost 20 cents each , and the other type cost 25 cents each. One thousand souvenirs were distributed in all. If the cost of these souvenirs was 220 dollars. How many of 25 cents souveniers were distributed?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# cents_20 = number of 20 cents, cents_25 = number of 25 cents\nc20, c25 = symbols('cents_20, cents_25')\n\n# need t convert dollar to cents\ntotal_cents = 220 * 100\n\neq1 = Eq((c20+c25), 1000)\neq2 = Eq((20*c20+25*c25), total_cents)\n\nanswer_dict = solve((eq1, eq2), (c20, c25))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['cents_25'])" + ], + "Output Answer": [ + "400" + ], + "split": "train" + }, + { + "Input": "Mrs. Hilt wants to make a border around her garden. She has placed 125.0 rocks around the border. She has 64.0 more rocks. How many rocks will be in her completed border.", + "Output Program": [ + "got = 125\nmore = 64\n\ntotal = got + more\n\nprint(total)" + ], + "Output Answer": [ + "189" + ], + "split": "train" + }, + { + "Input": "Mrs. Hilt baked pies last weekend for a holiday dinner. She baked 16.0 pecan pies and 14.0 apples pies. She now needs 5.0 times this amount. How many pies will she have to bake.", + "Output Program": [ + "pecan = 16\napple = 14\ntimes = 5\n\ntotal = (pecan + apple) * times\n\nprint(total)" + ], + "Output Answer": [ + "150" + ], + "split": "train" + }, + { + "Input": "High school graduating class is made up of 466 students. There are 212 more girls than boys. How many boys are in the class?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nx = Symbol('x')\n\nnumber = 466\n\nresult = solve( x+212 + x - number, x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "127" + ], + "split": "train" + }, + { + "Input": "On Monday, 375 students went on a trip to the zoo. All 7 buses were filled and 4 students had to travel in cars. How many students were in each bus ?", + "Output Program": [ + "students = 375\nbuses = 7\nleft = 4\n\naverage = int((students - left) / buses)\n\nprint(average)" + ], + "Output Answer": [ + "53" + ], + "split": "train" + }, + { + "Input": "Your teacher is giving you a test worth 100 points containing 40 questions. There are 2-point and 4-point questions on the test. How many questions are worth two points?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 40\nb = 2\nc = 4\nd = 100\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "30" + ], + "split": "train" + }, + { + "Input": "Find the two numbers whose sum is 45 and such that one is 4 times as large as the other. Find the smaller number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 4\nnumber = 45\n\nx = Symbol('x')\n\nresult = solve( times*x + x - number)[0]\n\nprint(result)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "The world 's oldest bride was 19 yr older than her groom. Together , their ages totaled 185 years. How old was the bride?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = age of bride\nx = Symbol('x')\neq = Eq((x-19)+x, 185)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "102" + ], + "split": "train" + }, + { + "Input": "There are 35.0 bottle caps in every box of Beverly's bottle cap collection. If the bottle caps are organized into 7.0 boxes, how many bottle caps are there in total.", + "Output Program": [ + "caps = 35\nbottles = 7\n\ntotal = caps * bottles\n\nprint(total)" + ], + "Output Answer": [ + "245" + ], + "split": "train" + }, + { + "Input": "You want to give 24.0 cookies to each of the 6.0 people. How many cookies do you need.", + "Output Program": [ + "peoples = 6\ncookies = 24\n\ntotal = peoples * cookies\n\nprint(total)" + ], + "Output Answer": [ + "144" + ], + "split": "train" + }, + { + "Input": "The school is selling tickets to a performance. They have adult and child tickets. Each adult ticket is 5 dollars and each child ticket is 3 dollars. By the end of the week , there was 178 dollars in sales from 42 tickets sold. How many child tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 42\nb = 3\nc = 5\nd = 178\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "16" + ], + "split": "train" + }, + { + "Input": "Two rainstorms occurred in one week in a certain area. In the first storm 30 milliliters of rain fell per hour , and in the second storm 15 milliliters of rain fell per hour. Rain fell that week for a total of 45 hours , for a total rainfall of 975 milliliters. How many hours was the first storm", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 45\nb = 30\nc = 15\nd = 975\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "20" + ], + "split": "train" + }, + { + "Input": "A writing workshop enrolls novelists and poets in a ratio of 5 to 3. There are 24 people at the workshop. How many novelists are there", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# novelists = number of novelist, poets = number of poets\nn, p = symbols('novelists, poets')\n\neq1 = Eq((3*n-5*p), 0)\neq2 = Eq((n+p), 24)\n\nanswer_dict = solve((eq1, eq2), (n, p))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['novelists'])" + ], + "Output Answer": [ + "15" + ], + "split": "train" + }, + { + "Input": "There are 27 pencils in the drawer. Nancy placed 45 more pencils in the drawer. How many pencils are now there in total ?", + "Output Program": [ + "pencils = 27\nplaced = 45\n\ntotal = pencils + placed\n\nprint(total)" + ], + "Output Answer": [ + "72" + ], + "split": "train" + }, + { + "Input": "A cashier at Apex Parts received a check for 2380 dollars for 59 parts. Some parts cost 20 dollars per part and other parts cost 50 dollars per part. How many 50-dollar parts are in the order?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 59\nb = 50\nc = 20\nd = 2380\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "40" + ], + "split": "train" + }, + { + "Input": "There are 9 crayons in the drawer. Benny placed 3 more crayons in the drawer. How many crayons are now there in total ?", + "Output Program": [ + "crayons = 9\nplaced = 3\n\ntotal = crayons + placed\n\nprint(total)" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "On Friday, Sam spent 2 pennies on ice cream. The next day, Sam spent 12 dimes on baseball cards. All in all, how much money did Sam spend?", + "Output Program": [ + "pennies = 2\ndime = 10\ntweleve_dimes = 12* dime\n\ntotal_dollar = (tweleve_dimes+pennies)/100\n\nprint(total_dollar)" + ], + "Output Answer": [ + "1.22" + ], + "split": "train" + }, + { + "Input": "A car rents for 30 dollars per day plus 18 cents per mile. You are on a budget of 75 dollars. What mileage would allow you to stay within your budget?", + "Output Program": [ + "budget = 75\nrent_price = 30\ncents_per_mile = 18\ndollar_per_mile = 18 / 100\n\ntotal_miles = (budget - rent_price) / dollar_per_mile\n\nprint(total_miles)" + ], + "Output Answer": [ + "250" + ], + "split": "train" + }, + { + "Input": "Melanie picked 7.0 plums and 4.0 oranges from the orchard. Sam gave her 3.0 plums. How many plums does she have now .", + "Output Program": [ + "no_plums = 7\nno_orange = 4\nadded_plums = 3\n\ntotal_plums = no_plums + added_plums\n\nprint(total_plums)" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "There are 55.0 oranges in a box. Deborah has 11.0 oranges in a bag. Susan puts 35.0 more oranges into the box. How many oranges are in the box.", + "Output Program": [ + "oranges = 55\nput = 35\n\ntotal = oranges + put\n\nprint(total)" + ], + "Output Answer": [ + "90" + ], + "split": "train" + }, + { + "Input": "Fred had 26 baseball cards and gave 18 to Mary. He then finds an unopened box of 40. How many cards does he have in all.", + "Output Program": [ + "cards = 26\ngave = 18\nfound = 40\n\ntotal = cards-gave+found \n\nprint(total)" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "Mike has 8 orange marbles, he gave Sam 4 of the marbles. How many orange marbles does he now have ?", + "Output Program": [ + "marbles = 8\ngave = 4\n\nremaining = marbles - gave\n\nprint(remaining)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Julian is writing a comic book. His story has 143.0 frames per page. If he has 11.0 pages in his book, how many frames will there be in total.", + "Output Program": [ + "frames = 143\npages = 11\n\ntotal = frames * pages \n\nprint(total)" + ], + "Output Answer": [ + "1573" + ], + "split": "train" + }, + { + "Input": "Honda day shift produced 4 times as much as second shift. The total production for the month was 5,500 cars. How many did the day shift produce?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 4\nnumber = 5500\n\nx = Symbol('x')\n\nresult = solve( times*x + x - number)[0]\n\nanswer = number - result\n\nprint(answer)" + ], + "Output Answer": [ + "4400" + ], + "split": "train" + }, + { + "Input": "Sara has saved 11 quarters from washing cars. How many cents does Sara have ?", + "Output Program": [ + "one_quater = 25\nquater = 11\n\ncents = one_quater * quater\n\nprint(cents)" + ], + "Output Answer": [ + "275" + ], + "split": "train" + }, + { + "Input": "Shannon, Brenda\u2019s neighbor, joined Brenda in making bracelets. She brought 48.0 heart-shaped stones and wanted to have 8.0 of this type of stone in each of the bracelet she makes. How many bracelets with heart-shaped stones can Shannon make.", + "Output Program": [ + "total_heart_stone = 48\nstone_per_bracelet = 8\n\nno_bracelet = total_heart_stone / stone_per_bracelet\n\nprint(no_bracelet)" + ], + "Output Answer": [ + "6" + ], + "split": "train" + }, + { + "Input": "A 69 inch board is cut into 2 pieces. One piece is 2 times the length of the other. What is the length of the longer piece, in inches?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 2\nnumber = 69\n\nx = Symbol('x')\n\nresult = solve( times*x + x - number)[0]\n\nanswer = number - result\n\nprint(answer)" + ], + "Output Answer": [ + "46" + ], + "split": "train" + }, + { + "Input": "A trivia team had 5.0 members total, but during a game 2.0 members didn't show up. If all member that did show up scored 6.0 points in total, how many points did each one.", + "Output Program": [ + "member = 5\ndidnt_show = 2\nscore = 6\n\naverage = int(score / (member - didnt_show))\n\nprint(average)" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Sarah picked 45.0 apples. Her brother picked 9.0 apples. How many times as many apples did Sarah pick.", + "Output Program": [ + "sara = 45\nbrother = 9\n\ntimes = int(sara/brother)\n\nprint(times)" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "Student tickets cost 4 dollars and general admission tickets cost 6 dollars. You sell 525 tickets and collect 2876 dollars. How many general admission tickets did you sell?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 525\nb = 6\nc = 4\nd = 2876\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "388" + ], + "split": "train" + }, + { + "Input": "A furniture dealer has 36 tables. Some tables have 4 legs and some have 3 legs , but she does n't know how many of each kind there are. She has counted 124 legs in total. How many 4 legged tables are there?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 36\nb = 4\nc = 3\nd = 124\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "16" + ], + "split": "train" + }, + { + "Input": "Sunshine Car Rentals rents a basic car at a daily rate of 17.99 dollars plus 0.18 per mile. City Rentals rents a basic car at 18.95 dollars plus 0.16 per mile. For what mileage is the cost the same?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\ndollar_per_day_sunshine = 17.99\ndollar_per_mile_sunshine = 0.18\ndollar_per_day_city = 18.95\ndollar_per_mile_city = 0.16\n\n# x = number of miles at which charges of both the agencies are same\nx = Symbol('x')\neq = Eq(dollar_per_day_sunshine+(dollar_per_mile_sunshine*x), dollar_per_day_city+(dollar_per_mile_city*x))\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "Two rainstorms occurred in one week in a certain area. In the first storm 30 milliliters of rain fell per hour , and in the second storm 15 milliliters of rain fell per hour. Rain fell that week for a total of 45 hours , for a total rainfall of 975 milliliters. How many hours was the second storm.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 45\nb = 15\nc = 30\nd = 975\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(answer)" + ], + "Output Answer": [ + "25" + ], + "split": "train" + }, + { + "Input": "The value of a sport utility vehicle this year is 16,000 dollars , which is 0.8 of what its value was last year. How much is the value of the vehicle last year?", + "Output Program": [ + "this_year = 16000\nlast_year_percent = 0.8\n\nlast_year = int(this_year/last_year_percent)\n\nprint(last_year)" + ], + "Output Answer": [ + "20000" + ], + "split": "train" + }, + { + "Input": "Adult tickets for a play cost 11 dollars and the child tickets cost 10 dollars. If there were 23 people at a performance and the theater collected 246 dollars from tickets sales , how many children attended the play?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 23\nb = 11\nc = 10\nd = 246\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(result)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "The world 's oldest bride was 19 yr older than her groom. Together , their ages totaled 185 years. How old was the groom?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = age of groom\nx = Symbol('x')\neq = Eq((x+19)+x, 185)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "83" + ], + "split": "train" + }, + { + "Input": "Lansing has 25.0 elementary schools. There are 247.0 new elementary students altogether in Lansing this year. How many of them will be at each school on average.", + "Output Program": [ + "no_students = 247\nno_schools = 25\n\nstudent_per_school = no_students / no_schools\n\nprint(student_per_school)" + ], + "Output Answer": [ + "9.88" + ], + "split": "train" + }, + { + "Input": "Riza was 25 when her first son was born. Today the sum of their ages is 105. How old is Riza's son now?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\nx = Symbol('x')\n\nresult = solve(x+25 +x - 105)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "40" + ], + "split": "train" + }, + { + "Input": "A teacher gives out a test of 30 problems. Each computation problem is worth 3 points. Each word problem is worth 5 points. The total points you can receive on the test is 110 points. How many computation problems are there?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 30\nb = 5\nc = 3\nd = 110\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nprint(result)" + ], + "Output Answer": [ + "20" + ], + "split": "train" + }, + { + "Input": "Jessica, Sandy, and Jason each have 8 pencils. How many pencils do they have have in all ?", + "Output Program": [ + "peoples = 3\npencils = 8\n\ntotal = pencils * peoples\n\nprint(total)" + ], + "Output Answer": [ + "24" + ], + "split": "train" + }, + { + "Input": "The total number of Democrats and Republicans in the House of Representatives was 434. There were 30 more Republicans then Democrats. How many Democrats were there in the Senate?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of democrat\nx = Symbol('x')\neq = Eq((x+30)+x, 434)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "202" + ], + "split": "train" + }, + { + "Input": "Angus invested 18,000 dollars , part at 3 % and part at 5 %. If the total interest at the end of the year is 660 dollars , how much did he invest at 5%?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n#.05X+.03(18000-X)=660\n\nx = Symbol('x')\n\nresult = solve(0.05*x + 0.03*(18000 - x) - 660)[0]\n\nprint(int(result))" + ], + "Output Answer": [ + "6000" + ], + "split": "train" + }, + { + "Input": "Sam has 86.0 yellow and 20.0 green marbles. Joan gave Sam 25.0 yellow marbles. How many yellow marbles does Sam now have.", + "Output Program": [ + "marbles = 86\nreceived = 25\n\ntotal = marbles + received\n\nprint(total)" + ], + "Output Answer": [ + "111" + ], + "split": "train" + }, + { + "Input": "You have exactly 537 dollars to spend on party gifts for your rich uncle 's birthday party. You decide to get watches for the ladies at 27.98 dollars each , and beepers for the men at 23.46 dollars each. You know that the number of watches required will be 3 times as much as the number of beepers. How many beepers do you buy?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# watch = number of watches, beeper = number of beepers\nw, b = symbols('watch, beeper')\n\neq1 = Eq((w-3*b), 0)\neq2 = Eq((27.98*w+23.46*b), 537)\n\nanswer_dict = solve((eq1, eq2), (w, b))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['beeper'])" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "Eugene has 51.0 pencils. He gives 6.0 to Joyce. How many pencils does Eugene have in all.", + "Output Program": [ + "pencils = 51\ngave = 6\n\ntotal = pencils - gave\n\nprint(total)" + ], + "Output Answer": [ + "45" + ], + "split": "train" + }, + { + "Input": "A piece of rope 60 meters long is cut into two pieces so that the longest piece is twice as long as the shorter piece. How long is the shorter piece?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 2\nnumber = 60\n\nx = Symbol('x')\n\nresult = solve( times*x + x - number)[0]\n\nprint(result)" + ], + "Output Answer": [ + "20" + ], + "split": "train" + }, + { + "Input": "There are 22 walnut trees currently in the park. Park workers will plant more walnut trees today. When the workers are finished there will be 55 walnut trees in the park. How many walnut trees did the workers plant today ?", + "Output Program": [ + "current = 22\nfinished = 55\n\nplanted = finished - current\n\nprint(planted)" + ], + "Output Answer": [ + "33" + ], + "split": "train" + }, + { + "Input": "A grain-storage warehouse has a total of 30 bins. Some hold 20 tons of grain each. The rest hold 15 tons each. How many of each type of bin are there if the capacity of the warehouse is 510 tons? How many 20 ton bins?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# 20_tons = 20 tons of grain, 15_tons = 15 tons of grain\nt20, t15 = symbols('20_tons, 15_tons')\n\neq1 = Eq((t20+t15), 30)\neq2 = Eq((20*t20+15*t15), 510)\n\nanswer_dict = solve((eq1, eq2), (t20, t15))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['20_tons'])" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "254 people go to a zoo. Tickets are 28 dollars for adults and 12 dollars for kids. Total sales are 3,864 dollars. How many kids went to zoo?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 254\nb = 28\nc = 12\nd = 3864\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(result)" + ], + "Output Answer": [ + "203" + ], + "split": "train" + }, + { + "Input": "Jose starts with 7.0 bottle caps. He gives 2.0 to Rebecca. How many bottle caps does Jose have left.", + "Output Program": [ + "caps = 7\ngave = 2\n\nremaining = caps - gave\n\nprint(remaining)" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "There were a total of 323.0 football games in 1.0 month. The season is played for 17.0 months. How many football games were played in total, if each month has the same number of games.", + "Output Program": [ + "games = 323\nmonths = 17\n\ntotal = games * months\n\nprint(total)" + ], + "Output Answer": [ + "5491" + ], + "split": "train" + }, + { + "Input": "20.0 ducks are swimming in a lake. 13.0 ducks leave. How many ducks are swimming in the lake.", + "Output Program": [ + "ducks = 20\nleft = 13\n\nremaining = ducks - left\n\nprint(remaining)" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "7 audio cassettes and 3 video cassettes cost rs 1110 , while 5 audio cassettes and 4 video cassettes cost rs 1350. Find the cost of an audio cassette", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 1110\nb = 1350\na_x = 7\na_y = 3\nb_x = 5\nb_y = 4\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[0], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "30" + ], + "split": "test" + }, + { + "Input": "There are 34 dogwood trees currently in the park. Park workers will plant 49 more dogwood trees today. How many dogwood trees will the park have when the workers are finished ?", + "Output Program": [ + "tress = 34\nplant = 49\n\nfinished = tress + plant \n\nprint(finished)" + ], + "Output Answer": [ + "83" + ], + "split": "test" + }, + { + "Input": "There were 27.0 boys and 35.0 girls on the playground at recess. Each boy went back inside paired with a girl. How many children were left on the playground now.", + "Output Program": [ + "girls = 35\nboys = 27\n\nleft = girls - boys\n\nprint(left)" + ], + "Output Answer": [ + "8" + ], + "split": "test" + }, + { + "Input": "3 Pairs of jeans and 6 shirts costs 104.25 dollars. The cost of 4 jeans and 5 shirts is 112.15 dollars. Find the cost of each shirt.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\na = 104.25\nb = 112.15\na_x = 3\na_y = 6\nb_x = 4\nb_y = 5\n\nvalues = list(linsolve([a_x*x + a_y*y - a , b_x*x + b_y*y - b], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "8.95" + ], + "split": "test" + }, + { + "Input": "A boat travels 45 miles upstream in 5 hours. The boat travels the same distance downstream in 3 hours. What is the speed of the current in miles per hour?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([5*(x - y) - 45, 3*(x+y) - 45], (x, y)))[0]\n\nanswer = int(answer[1])\n\nprint(answer)" + ], + "Output Answer": [ + "3" + ], + "split": "test" + }, + { + "Input": "The second of two numbers is 4 more than the first. The sum is 56. Find the first number.", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\ntimes = 4\nnumber = 56\n\nx = Symbol('x')\n\nresult = solve( times+x + x - number)[0]\n\nprint(result)" + ], + "Output Answer": [ + "26" + ], + "split": "test" + }, + { + "Input": "Sara had 49.0 quarters in her bank. She spent 21.0 quarters. How many quarters does she have now .", + "Output Program": [ + "quarters = 49\nspent = 21\n\nremaining = quarters - spent\n\nprint(remaining)" + ], + "Output Answer": [ + "28" + ], + "split": "test" + }, + { + "Input": "A jazz concert brought in 191,000 dollars with the sale of 7400 tickets. If tickets were sold for 20 dollars and 30 dollars each , How many 30-dollar tickets?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 7400\nb = 20\nc = 30\nd = 191000\n\nx = Symbol('x')\n\nresult = solve((a-x)*b + x*c - d, x)[0]\n\nanswer = int(a - result)\n\nprint(result)" + ], + "Output Answer": [ + "4300" + ], + "split": "test" + }, + { + "Input": "Josh had 142.0 pencils. He got 31.0 pencils from Dorothy. How many pencils does Josh have now.", + "Output Program": [ + "pencils = 142\ngot = 31\n\ntotal = pencils + got\n\nprint(total)" + ], + "Output Answer": [ + "173" + ], + "split": "test" + }, + { + "Input": "Three times a number minus a second number is 20. The sum of the two numbers is 48. Find the bigger number.", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nvalues = list(linsolve([3*x - y - 20 , x + y - 48], (x, y)))[0]\n\nanswer = round(values[1], 2)\n\nprint(answer)" + ], + "Output Answer": [ + "31" + ], + "split": "test" + }, + { + "Input": "It took me 6 minutes to walk 500 meters. How fast was I travelling?", + "Output Program": [ + "meters = 500\nminutes = 6\n\ntraveling = round(meters / minutes, 2)\n\nprint(traveling)" + ], + "Output Answer": [ + "83.33" + ], + "split": "test" + }, + { + "Input": "If Karen sold 36.0 cases of Tagalongs, and each case holds 12.0 boxes, how many boxes of Tagalongs did Karen sell.", + "Output Program": [ + "tagalongs = 36\nboxes = 12\n\nsold = tagalongs * boxes\n\nprint(sold)" + ], + "Output Answer": [ + "432" + ], + "split": "test" + }, + { + "Input": "Sally saw 1 dozen birds in a tree. How many birds did Sally see ?", + "Output Program": [ + "tagalongs = 36\nboxes = 12\n\nsold = tagalongs * boxes\n\nprint(sold)" + ], + "Output Answer": [ + "12" + ], + "split": "test" + }, + { + "Input": "It rained 0.2 inches on Saturday and 0.4 inches on Sunday. How much did it rain on Saturday and Sunday combined?", + "Output Program": [ + "saturday = 0.2\nsunday = 0.4\n\ntotal = round(saturday + sunday, 2)\n\nprint(total)" + ], + "Output Answer": [ + "0.6" + ], + "split": "test" + }, + { + "Input": "Isabel had 2.0 pages of math homework and 4.0 pages of reading homework. If there are 5 total problems, how many problems were on each page on average.", + "Output Program": [ + "math = 2\nreading = 4\nproblems = 5\n\naverage = (math + reading) / problems\n\nprint(average)" + ], + "Output Answer": [ + "1.2" + ], + "split": "test" + }, + { + "Input": "A waiter had 44.0 customers in his section, and then 12.0 more customers arrived. If each table has 8.0 people, how many table does the waiter have.", + "Output Program": [ + "section = 44\narrived = 12\npeoples = 8\n\naverage = int((section + arrived) / peoples)\n\nprint(average)" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "Mike has 48 books. Alyssa has 8 times more books than Mike. How many dozen books does Alyssa have?", + "Output Program": [ + "mike = 48\nalyssa = 8*mike\n\nbooks_dozen = int(alyssa / 12)\n\nprint(books_dozen)" + ], + "Output Answer": [ + "32" + ], + "split": "test" + }, + { + "Input": "Will had 57.0 dollars. If he was given another 27.0 bucks from his dad, how many 6.0 dollar toys could he buy with all of the money he has.", + "Output Program": [ + "available_dollars = 57\nadded_dollars = 27\nprice_per_dollar = 6\n\nno_toys = (available_dollars + added_dollars) / price_per_dollar\n\nprint(no_toys)" + ], + "Output Answer": [ + "14" + ], + "split": "test" + }, + { + "Input": "6.0 people ate 54.0 lemon heads each. How many lemon heads were eaten all together.", + "Output Program": [ + "lemons = 54\npeoples = 6\n\ntotal = lemons * peoples\n\nprint(total)" + ], + "Output Answer": [ + "324" + ], + "split": "test" + }, + { + "Input": "A bricklayer and an electrician together spend 90 hours working on a new house. If the bricklayer earns 12 dollars per hour , the electrician earns 16 dollars an hour , and the owner pays them a total of 1350 dollars for their work , how many hours does the bricklayer work?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 90\nb = 16\nc = 12\nd = 1350\n\nx = Symbol('x')\n\nresult = float(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "22.5" + ], + "split": "test" + }, + { + "Input": "The Rhapsody Theater sold 800 total tickets. An advanced ticket costs 14.50 dollars and a ticket at the door costs 22.00 dollars. In all , 16,640 dollars was taken in. How many advanced tickets were sold?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 800\nb = 22\nc = 14.50\nd = 16640\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "128" + ], + "split": "test" + }, + { + "Input": "Wendy uploaded 79.0 pictures to Facebook on Monday. She uploaded 44.0 pictures to Facebook on Tuesday, then split all the pictures into 5.0 different albums. How many pictures were in each album .", + "Output Program": [ + "monday = 79\ntuesday = 44\nalbum = 5\n\ntotal = monday + tuesday\n\naverage = total / album\n\nprint(average)" + ], + "Output Answer": [ + "24.6" + ], + "split": "test" + }, + { + "Input": "Ashley sold 12.0 boxes of Samoas each containing 12.0 Samoas. How many Samoas did Ashley sell in total.", + "Output Program": [ + "boxes = 12\nsamosas = 12\n\ntotal = boxes * samosas\n\nprint(total)\n" + ], + "Output Answer": [ + "144" + ], + "split": "test" + }, + { + "Input": "Marcia spent 300 minutes working on her science project. How many hours did Marcia spend on her science project?", + "Output Program": [ + "minutes = 300\none_hour = 60\n\ntotal_hour = int(minutes/one_hour)\n\nprint(total_hour)\n" + ], + "Output Answer": [ + "5" + ], + "split": "test" + }, + { + "Input": "Larry has 67.0 cards. Dennis gives 9.0 cards to Larry. How many cards will Larry have.", + "Output Program": [ + "cards = 67\nreceived = 9\n\ntotal = cards + received\n\nprint(total)" + ], + "Output Answer": [ + "76" + ], + "split": "test" + }, + { + "Input": "George threw 28.0 bad socks and he threw away 4.0 old ones that didn't fit and bought 36.0 new ones, how many socks would he have", + "Output Program": [ + "bad = 28\nold = 4\nbought = 36\n\nremaining = bought - bad - old\n\nprint(remaining)" + ], + "Output Answer": [ + "4" + ], + "split": "test" + }, + { + "Input": "A farmer grows only sunflowers and flax on his 240 acre farm. This year he wants to plant 80 more acres of sunflowers than flax. How many acres of sunflowers does the farmer need to plant?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of sunflowers\nx = Symbol('x')\neq = Eq((x-80)+x, 240)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "160" + ], + "split": "test" + }, + { + "Input": "A child has 17.55 dollars worth of nickels and dimes in her piggy bank. There are a total of 207 coins. How many dimes does she have?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# dimes = number of one dime, nickles = number of one nickle\nd, n = symbols('dimes, nickles')\n\ntotal_dollar = 17.55\ntotal_cents = total_dollar * 100\n\n# price of 1 dime = 10 and price of 1 nickle = 5\n\neq1 = Eq((d+n), 207)\neq2 = Eq((10*d+5*n), total_cents)\n\nanswer_dict = solve((eq1, eq2), (d, n))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['dimes'])" + ], + "Output Answer": [ + "144" + ], + "split": "test" + }, + { + "Input": "William starts with 15.0 tickets. He sells 3.0 tickets. How many tickets does William end with.", + "Output Program": [ + "starts_with = 15\nsold = 3\n\nremaining = starts_with - sold\n\nprint(remaining)" + ], + "Output Answer": [ + "12" + ], + "split": "test" + }, + { + "Input": "On a certain hot summer 's day , 754 people used the public swimming pool. The daily prices are 1.50 dollars for children and 2.25 dollars for adults. The receipts for admission totaled 1422.00 dollars. How many children swam at the public pool that day?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 754\nb = 2.25\nc = 1.50\nd = 1422\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "366" + ], + "split": "test" + }, + { + "Input": "Ned has to wash 9.0 short sleeve shirts and 21.0 long sleeve shirts before school. He has already washed 29.0 other shirts, so how many total shirts will be washed.", + "Output Program": [ + "shorts = 9\nlongs = 21\nwashed = 29\n\nshirts_washed = shorts + longs + washed\n\nprint(shirts_washed)" + ], + "Output Answer": [ + "59" + ], + "split": "test" + }, + { + "Input": "Steve has 36 coins consisting of dimes and nickels. If the value of the coins is 3.10 dollars , then how many dimes does he have?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# dimes = number of one dime, nickles = number of one nickle\nd, n = symbols('dimes, nickles')\n\ntotal_dollar = 3.10\ntotal_cents = total_dollar * 100\n\n# price of 1 dime = 10 and price of 1 nickle = 5\n\neq1 = Eq((d+n), 36)\neq2 = Eq((10*d+5*n), total_cents)\n\nanswer_dict = solve((eq1, eq2), (d, n))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['dimes'])" + ], + "Output Answer": [ + "26" + ], + "split": "test" + }, + { + "Input": "A girl saves 1-dollar coins and 2-dollar coins. She takes it to a bank , she has 180 coins in total that equals 260 dollars. How many 2-dollar coins are there?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 180\nb = 1\nc = 2\nd = 260\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "80" + ], + "split": "test" + }, + { + "Input": "Luke was scheduled to earn 18.0 dollars mowing lawns but lost 9.0 dollars due to his feeling unwell and being unable to work. If he charged 3.0 dollar an hour, how many hours had he actually worked.", + "Output Program": [ + "total = 18\nnot_earned = 9\nper_hour = 3\n\ntotal_hours = int((total - not_earned) / per_hour)\n\nprint(total_hours)" + ], + "Output Answer": [ + "3" + ], + "split": "test" + }, + { + "Input": "The difference between two numbers is 3. Their sum is 13. Find the numbers. What is the smaller number?", + "Output Program": [ + "from sympy import *\n\nfrom sympy.solvers.solveset import linsolve\n\nx, y = symbols('x, y')\n\nanswer = list(linsolve([x - y - 3, x + y - 13], (x, y)))[0]\n\nprint(min(answer))" + ], + "Output Answer": [ + "5" + ], + "split": "test" + }, + { + "Input": "Kylie was collecting coins. She got 15.0 coins from her piggy bank and 13.0 coins from her brother. Her father gave Kylie 8.0 coins. Laura gave 21.0 coins to Kylie. How many coins did Kylie have left.", + "Output Program": [ + "piggy_bank = 15\nbrother = 13\nfather = 8 \nlaura = 21\n\ntotal = piggy_bank + brother + father + laura\n\nprint(total)" + ], + "Output Answer": [ + "57" + ], + "split": "test" + }, + { + "Input": "Mika had 20.0 stickers. She bought 26.0 stickers from a store in the mall and got 20.0 stickers for her birthday. Then Mika's sister gave Mika 6.0 stickers, and then Mika used 58.0 to decorate a greeting card. How many stickers does Mika have left.", + "Output Program": [ + "stickers = 20\nbought = 26\nmall = 20\nreceived = 6\nused = 58\n\nremaining = stickers + bought + mall + received - used\n\nprint(remaining)" + ], + "Output Answer": [ + "14" + ], + "split": "test" + }, + { + "Input": "There were 9.0 red orchids and 3.0 white orchids in the vase . Sally cut 15.0 red orchids from her flower garden and put them in the vase . How many red orchids are there now in the vase.", + "Output Program": [ + "orchids = 9\ngarden = 15\n\ntotal = orchids + garden\n\nprint(total)" + ], + "Output Answer": [ + "24" + ], + "split": "test" + }, + { + "Input": "The Litter Patrol picked up 10.0 glass bottles and 8.0 aluminum cans on Saturday. How many more bottles did they collect than cans.", + "Output Program": [ + "bottles = 10\ncans = 8\n\ndifference = bottles - cans\n\nprint(difference)" + ], + "Output Answer": [ + "2" + ], + "split": "test" + }, + { + "Input": "Mary had 18.0 baseball cards. Fred gave Mary 26.0 new baseball cards . Mary sold 40.0 baseball cards . How many baseball cards does Mary have now .", + "Output Program": [ + "available_cards = 18\nadded_cards = 26\nsold_cards = 40\n\nremaining_cards = (available_cards + added_cards) - sold_cards\n\nprint(remaining_cards)" + ], + "Output Answer": [ + "4" + ], + "split": "test" + }, + { + "Input": "Marc sold 563 tickets for the school play. Student tickets cost 4 dollars and adult tickets cost 6 dollars. Marc 's sales totaled 2840 dollars. How many student tickets did Marc sell?", + "Output Program": [ + "from sympy.solvers import solve\nfrom sympy import Symbol\n\n\na = 563\nb = 6\nc = 4\nd = 2840\n\nx = Symbol('x')\n\nresult = int(solve((a-x)*b + x*c - d, x)[0])\n\nprint(result)" + ], + "Output Answer": [ + "269" + ], + "split": "test" + }, + { + "Input": "Lukas scored 12.0 points in 5.0 games in basketball. How many points did he score per game .", + "Output Program": [ + "total_scores = 12\ntotal_games = 5\n\nscore_per_game = total_scores / total_games\n\nprint(score_per_game)" + ], + "Output Answer": [ + "2.4" + ], + "split": "test" + }, + { + "Input": "There were 58.0 geese and 37.0 ducks in the marsh. How many more geese were in the marsh.", + "Output Program": [ + "no_geese = 58\nno_ducks = 37\n\ngeese_more_duck = no_geese - no_ducks\n\nprint(geese_more_duck)" + ], + "Output Answer": [ + "21" + ], + "split": "test" + }, + { + "Input": "The sum of two numbers is 62. The greater number exceeds twice the smaller number by 5. What is the larger numbers?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = smaller number\nx = Symbol('x')\neq = Eq((2*x+5)+x, 62)\n\nanswer = solve(eq)\nsmaller_number = answer[0]\n\ngreater_number = (smaller_number * 2) + 5\n\nprint(greater_number)" + ], + "Output Answer": [ + "43" + ], + "split": "test" + }, + { + "Input": "A recipe calls for 2 cups of sugar. You find that you only have 0.3333 cups of sugar left. What fraction of the recipe can you make?", + "Output Program": [ + "no_cups_required = 2\nno_cups_available = 0.3333\n\nno_recipe = no_cups_available / no_cups_required\n\nprint(round(no_recipe, 3))" + ], + "Output Answer": [ + "0.165" + ], + "split": "test" + }, + { + "Input": "The US Senate had a total of 99 Democrats and Republicans. There were 11 more Republicans than Democrats. How many Democrats were there in the Senate?", + "Output Program": [ + "from sympy import Eq, Symbol, solve\n\n# x = number of democrats\nx = Symbol('x')\neq = Eq((x+11)+x, 99)\n\nanswer = solve(eq)\n\nprint(answer[0])" + ], + "Output Answer": [ + "44" + ], + "split": "test" + }, + { + "Input": "Your science test is worth 100 points and contains 38 questions. There are two-point and five-point questions on the test. How many two-point questions are on the test?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# two_points = two point questions, five_points = five point questions\np2, p5 = symbols('two_points, five_points')\n\neq1 = Eq((p2+p5), 38)\neq2 = Eq((2*p2+5*p5), 100)\n\nanswer_dict = solve((eq1, eq2), (p2, p5))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['two_points'])" + ], + "Output Answer": [ + "30" + ], + "split": "test" + }, + { + "Input": "Maggi had 3.0 packages of cupcakes. There are 4.0 cupcakes in each package. She ate all of the packages of cupcakes, then ate 5.0 more cupcakes. How many did he eat in all.", + "Output Program": [ + "no_package = 3\ncupcakes_per_package = 4\n\nadded_cupcakes = 5\n\ntotal_cupcakes = (no_package * cupcakes_per_package) + added_cupcakes\n\nprint(total_cupcakes)" + ], + "Output Answer": [ + "17" + ], + "split": "test" + }, + { + "Input": "The attendance at a school concert was 578 people. Admission cost 2.00 dollars for adults and 1.50 dollars for children. The receipts were 985.00 dollars. How many children attended the concert?", + "Output Program": [ + "from sympy import symbols, Eq, solve\n\n# adult = number of adults, children = number of children\na, c = symbols('adult, children')\n\neq1 = Eq((a+c), 578)\neq2 = Eq((2*a+1.5*c), 985)\n\nanswer_dict = solve((eq1, eq2), (a, c))\n\nfor i in list(answer_dict.keys()):\n answer_dict[str(i)] = answer_dict.pop(i)\n\nprint(answer_dict['children'])" + ], + "Output Answer": [ + "342" + ], + "split": "test" + }, + { + "Input": "Before starting her shift, a waitress checks to make sure there is enough mustard for her customers. She finds 0.25 of a bottle at the first table, 0.25 of a bottle at the second table, and 0.375 of a bottle at the third table. Altogether, how many bottles of mustard does the waitress find?", + "Output Program": [ + "mustard_first_table = 0.25\nmustard_second_table = 0.25\nmustard_third_table = 0.375\n\ntotal_mustard = mustard_first_table + mustard_second_table + mustard_third_table\n\nprint(total_mustard)" + ], + "Output Answer": [ + "0.875" + ], + "split": "test" + }, + { + "Input": "There are 40.0 boys and 117 girls on the playground. How many children are on the playground.", + "Output Program": [ + "no_boys = 40\nno_girls = 117\n\ntotal_children = no_boys + no_girls\n\nprint(total_children)" + ], + "Output Answer": [ + "157" + ], + "split": "test" + }, + { + "Input": "A new parking lot has spaces for 450 cars. The ratio of spaces for full sized cars to compact cars is 11 to 4. How many spaces are for full-sized cars?", + "Output Program": [ + "Cars=450\nfullsized_car=11\ncompact_cars=4\nratio=15\ntotal=30\nSpaces_for_full_size_car=fullsized_car*total\nprint(Spaces_for_full_size_car)\n" + ], + "Output Answer": [ + "330" + ], + "split": "train" + }, + { + "Input": "Mary has 9.0 yellow marbles. She gave Joan 3.0 yellow marbles. How many yellow marbles will Mary have left.", + "Output Program": [ + "yellow_marbes=9\ngave_joan=3\nmary_have_left=yellow_marbes-gave_joan\nprint(mary_have_left)" + ], + "Output Answer": [ + "6" + ], + "split": "train" + }, + { + "Input": "Your teacher is giving you a test worth 100 points and containing 40 questions. There are 2 point and 4 point questions on the test. How many two point questions are there?", + "Output Program": [ + "totalQuestions=40\ntotalMarks=100\ntwoMarkQuestions= abs(totalMarks - 4*totalQuestions)/2\nprint(twoMarkQuestions)" + ], + "Output Answer": [ + "30" + ], + "split": "train" + }, + { + "Input": "During a sale an automobile dealer sold 69 cars and trucks. If she sold 27 more cars than trucks how many trucks did she sell?", + "Output Program": [ + "cars=69\ncars_more_than_truck=2\ncar_sold=27\nsold_tuck=cars-car_sold/cars_more_than_truck\nprint(sold_tuck)\n" + ], + "Output Answer": [ + "21" + ], + "split": "train" + }, + { + "Input": "Mike had 34.0 peaches left at his roadside fruit stand. He went to the orchard and picked 86.0 more peaches to stock up the stand. How many peaches does he have now.", + "Output Program": [ + "peaches=34\npicked_peaches=86\ntotal_peaches=peaches+picked_peaches\nprint(total_peaches)\n" + ], + "Output Answer": [ + "120" + ], + "split": "train" + }, + { + "Input": "219.0 people are going to the zoo, and there are 3.0 tasty sandwiches made ready for each person's lunch. How many sandwiches are prepared in total.", + "Output Program": [ + "people=219\nsandwiches=3\ntotal_sandwich=people*sandwiches\nprint(total_sandwich)\n" + ], + "Output Answer": [ + "657" + ], + "split": "train" + }, + { + "Input": "A department store held a sale to sell all of the 214 winter jackets that remained after the season ended. Until noon , each jacket in the store was priced at 31.95 dollars. At noon , the price of the jackets was further reduced to 18.95 dollars. After the last jacket was sold , the total receipts for the clearance sale were 5108.30 dollars. How many jackets were sold after noon?", + "Output Program": [ + "priceBeforeNoon=31.95\npriceAfterNoon=18.95\ntotalJackets=214\ntotalSaleAmount=5108.3\nnumberOfJacketsSoldAfterNoon=abs(totalSaleAmount-(priceBeforeNoon*totalJackets))/(priceBeforeNoon-priceAfterNoon)\nprint(numberOfJacketsSoldAfterNoon)\n" + ], + "Output Answer": [ + "133" + ], + "split": "train" + }, + { + "Input": "The product of 10 and a number is the same as 36 less twice that same number. Find the number.", + "Output Program": [ + "product=10\nNumber=36\nproductnumber=2\nNumber=Number/product-productnumber\nprint(Number)" + ], + "Output Answer": [ + "-4.5" + ], + "split": "train" + }, + { + "Input": "Heather went to the county fair last weekend. When she got there, she had to walk 0.3333333333333333 of a mile from the car to the entrance. Then she walked 0.3333333333333333 of a mile to the carnival rides and 0.08333333333333333 of a mile from the carnival rides back to the car. How many miles did Heather walk in all?", + "Output Program": [ + "heather_walk=0.3333333333333333\nwalk_for_carnival_ride=0.3333333333333333\nwalk_for_carnival_rides_back=0.08333333333333333\ntotal_walk=heather_walk+walk_for_carnival_ride+walk_for_carnival_rides_back\nprint(total_walk)\n" + ], + "Output Answer": [ + "0.75" + ], + "split": "train" + }, + { + "Input": "Michelle has 7.0 crayons. Each box holds 5.0 crayons. How many boxes does Michelle have.", + "Output Program": [ + "crayons=7\neach_box_crayons=5\nboxes_michelle_have=crayons/each_box_crayons\nprint(boxes_michelle_have)\n" + ], + "Output Answer": [ + "1.4" + ], + "split": "train" + }, + { + "Input": "An employment agency specializing in temporary construction help pays heavy equipment operators 140 dollars per day and general laborers 90 dollars per day. If 35 people were hired and the payroll was 3950 dollars , How many laborers were employed?", + "Output Program": [ + "equipmentOperatorPayRate=140\nlaborerPayRate=90\ntottalPayroll=3950\ntotalEmployee=35\nnumberOfLaborers=abs(tottalPayroll- (equipmentOperatorPayRate*totalEmployee))/(equipmentOperatorPayRate-laborerPayRate)\nprint(numberOfLaborers)\n" + ], + "Output Answer": [ + "19" + ], + "split": "train" + }, + { + "Input": "Nell collects baseball cards. She had 304.0 cards. Her friend Jeff gave her 276.0 cards. Hoe many cards does Nell now have.", + "Output Program": [ + "baseball_cards=304\njeff_gave=276\ntotal_cards_nell_have=baseball_cards+jeff_gave\nprint(total_cards_nell_have)\n" + ], + "Output Answer": [ + "580" + ], + "split": "train" + }, + { + "Input": "Rowan can row 26 kilometers downstream in 2 hours. Returning upstream it takes 4 hours to complete the trip. Find his rate in still water in kilometers per hour", + "Output Program": [ + "eq_dw = [26,'b','c',2]\neq_up = [26,'b','c',4]\n\nb = (eq_dw[0]/eq_dw[3]+eq_up[0]/eq_up[3])/2\n\nprint('Speed of boat:',b)" + ], + "Output Answer": [ + "9.75" + ], + "split": "train" + }, + { + "Input": "Lino picked up 324.0 shells at the seashore in the morning and put 292.00 shells back in the afternoon. How many shells does she have in all.", + "Output Program": [ + "morning=324\nafternoon=292\ntotal_shells=morning-afternoon\nprint(total_shells)\n" + ], + "Output Answer": [ + "32" + ], + "split": "train" + }, + { + "Input": "Tom purchased a football game for $14.02, a strategy game for $9.46, and a Batman game for $12.04. How much did Tom spend on video games?", + "Output Program": [ + "football=14.02\nstrategy_game=9.46\nbatman_game=12.04\ntotal_spend=football+strategy_game+batman_game\nprint(total_spend)\n" + ], + "Output Answer": [ + "35.52" + ], + "split": "train" + }, + { + "Input": "The difference between 3 times a number and 1 is the same as twice a number. Find the number.", + "Output Program": [ + "numbers=3\ndiffrence=2\nfind_number=numbers-diffrence\nprint(find_number)\n" + ], + "Output Answer": [ + "1" + ], + "split": "train" + }, + { + "Input": "Joan had 5 dimes in her bank. She spent 2 of her dimes. How many dimes does she have now ?", + "Output Program": [ + "dimes=5\nspent=2\nreaming_dimes=dimes-spent\nprint(reaming_dimes)\n" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "A petroleum company has two different sources of crude oil. The first source provides crude oil that is 25 % hydrocarbons and the second one provides crude oil that is 75 % hydrocarbons. In order to obtain 50 gallons of crude oil that is 55 % hydrocarbons , how many gallons of crude oil must be used from the second source?", + "Output Program": [ + "hydrocarbons1=25\nhydrocarbons2=75\ncrude_oil=55\ncrud_oil_must_used=crude_oil-hydrocarbons1\nprint(crud_oil_must_used)\n" + ], + "Output Answer": [ + "30" + ], + "split": "train" + }, + { + "Input": "A 200 seat theater charges 3.00 dollars for adults and 1.50 dollars for children. If all seats were filled and the total ticket income was 510 dollars how many children were in the audience?", + "Output Program": [ + "AdultCharge=3\nChildCharge=1.5\ntotalSeats=200\ntotalIncome=510\nchildCount=abs(totalIncome-(AdultCharge*totalSeats))/(AdultCharge-ChildCharge)\nprint(childCount)\n" + ], + "Output Answer": [ + "60" + ], + "split": "train" + }, + { + "Input": "Max bought 16 pounds of nuts at a party. The total cost was 72 dollars. The peanuts cost 3 dollars per pound and the almounds cost 5 dollars per pound. How many pounds of almounds did Max buy?", + "Output Program": [ + "totalNuts=16\ntotalCost=72\npeanutCost=3\nalmondCost=5\ntotalAlmonds=abs(totalCost-(peanutCost*totalNuts))/(almondCost-peanutCost)\nprint(totalAlmonds)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Benny goes out to lunch with Sara and Tom. Each person orders the $8 lunch special. Benny agrees to pay the bill. How much will he have to pay ?", + "Output Program": [ + "lunch=8\nperson=3\ntotal_bill=lunch*person\nprint(total_bill)\n" + ], + "Output Answer": [ + "24" + ], + "split": "train" + }, + { + "Input": "Two numbers are in the ratio 8 to 3. If the sum of numbers is 143 , find the bigger number?", + "Output Program": [ + "smallNuberRatio=8\nbigNumberRatio=3\nsumOfNumbers=143\nbigNumber=(sumOfNumbers*smallNuberRatio)/(smallNuberRatio+bigNumberRatio)\nprint(bigNumber)\n" + ], + "Output Answer": [ + "104" + ], + "split": "train" + }, + { + "Input": "Sam has 46.0 red balloons, Sam gives Fred 10.0 red balloons , and Dan has 16.0 red balloons . The balloons cost 10.0 dollars . How many red balloons do Sam and Dan have in all .", + "Output Program": [ + "red_balloons=46\ngives_fred=10\nsam_has=36\ndan_has=16\nsam_and_dan_balloons=sam_has+dan_has\nprint(sam_and_dan_balloons)\n" + ], + "Output Answer": [ + "52" + ], + "split": "train" + }, + { + "Input": "There are 96.0 cupcakes ordered for each of the 8.0 different children's events. How many cupcakes need to be made in total.", + "Output Program": [ + "ordered=96\nchildren=8\ntotal_cup_cake=ordered*children\nprint(total_cup_cake)\n" + ], + "Output Answer": [ + "768" + ], + "split": "train" + }, + { + "Input": "Marlee has 3.0 tables for her Halloween party. Each table will hold 12.0 guests. How many guests can she invite.", + "Output Program": [ + "table=3\nguest=12\ninvited_guest=table*guest\nprint(invited_guest)" + ], + "Output Answer": [ + "36" + ], + "split": "train" + }, + { + "Input": "Michael rented a truck for one day. There was a rental fee of 20.99 dollars , and there also was a charge of 25 cents for each mile. Michael paid 95.74 dollars when he returned the truck. For how many miles did he drive the truck?", + "Output Program": [ + "rentalFee=20.99\ncostPerMile=0.25\ntotalCost=95.74\ntotalMiles=(totalCost-rentalFee)/costPerMile\nprint(totalMiles)\n" + ], + "Output Answer": [ + "299" + ], + "split": "train" + }, + { + "Input": "Sally had 27 cards. Dan gave her 41 new cards. Sally bought 20 cards. How many cards does Sally have now ?", + "Output Program": [ + "sally_card=27\nnew_card=41\nsally_purchase=20\ntotal_card=sally_card+new_card+sally_purchase\nprint(total_card)" + ], + "Output Answer": [ + "88" + ], + "split": "train" + }, + { + "Input": "Rosa had 67.0 flowers. Andre gave her 90.0 more flowers. How many flowers does Rosa have in total.", + "Output Program": [ + "flowers=67\nandre_give=90\ntotal_flower_rosa_have=flowers+andre_give\nprint(total_flower_rosa_have)" + ], + "Output Answer": [ + "157" + ], + "split": "train" + }, + { + "Input": "James rode 80.0 miles per hour for 16.0 hours. How far did James ride.", + "Output Program": [ + "hour=16\nmiles=80.0\njames_ride=hour*miles\nprint(james_ride)" + ], + "Output Answer": [ + "1280" + ], + "split": "train" + }, + { + "Input": "If Heather bicycled 40.0 kilometers per day for 8.0 days, how many kilometers did Heather bike.", + "Output Program": [ + "kilometetrs=40.0\ndays=8\ntotal_kilometers=kilometetrs*days\nprint(total_kilometers)" + ], + "Output Answer": [ + "320" + ], + "split": "train" + }, + { + "Input": "Hockey teams receive 2 points when they win and 1 point when they tie. 1 season , a team won a championship with 60 points. They won 12 games more than they tied. How many ties did the team have?", + "Output Program": [ + "totalPoints=60\nwonGamePoint=2\ntieGamePoint=1\ntieGames=(totalPoints-(12*wonGamePoint))/(wonGamePoint+tieGamePoint)\nprint(tieGames)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "An athlete can burn 10 calories per minute while running and 4 calories per minute while walking. If the athlete burns 450 calories in 60 minutes , how many minutes are spent running?", + "Output Program": [ + "RunningCaloriesPerMin=10\nwalkingCaloriesPerMin=4\ntotalTime=60\ntotalCalories=450\nrunningTime=(totalCalories-(walkingCaloriesPerMin*totalTime))/(RunningCaloriesPerMin-walkingCaloriesPerMin)\nprint(runningTime)" + ], + "Output Answer": [ + "35" + ], + "split": "train" + }, + { + "Input": "Melanie's high school played 64 soccer games this year. She attended 32 games. How many soccer games did Melanie miss ?", + "Output Program": [ + "soccer_match=64\nattend=32\nmiss_matches=soccer_match-attend\nprint(miss_matches)" + ], + "Output Answer": [ + "32" + ], + "split": "train" + }, + { + "Input": "For a birthday party, Jerry bought 41.0 regular sodas and 22.0 diet sodas. If he had 9.0 parties, how many sodas would he buy total.", + "Output Program": [ + "regularSoda=41\ndietSoda=22\npartyCount=9\ntotalSoda=partyCount*(regularSoda+dietSoda)\nprint(totalSoda)\n" + ], + "Output Answer": [ + "567" + ], + "split": "train" + }, + { + "Input": "A grain storage warehouse has a total of 30 bins. Some hold 20 tons of grain each. The rest hold 15 tons each. The capacity of the warehouse is 510 tons. How many 20 ton bins are there?", + "Output Program": [ + "totalBins=30\nwarehouseCapacity=510\ntype1BinCapacity=20\ntype2BinCapacity=10\ntype1BinCount=(warehouseCapacity-(type2BinCapacity*totalBins))/(type1BinCapacity-type2BinCapacity)\nprint(type1BinCount)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Terrell hiked 8.2 miles on Saturday . Then , on Sunday , he hiked another 1.6 miles . How far did Terrell hike all together .", + "Output Program": [ + "hiked_saturday=8.2\nhiked_sunday=1.6\nterrell_hike_all_together=hiked_saturday+hiked_sunday\nprint(terrell_hike_all_together)\n" + ], + "Output Answer": [ + "9.8" + ], + "split": "train" + }, + { + "Input": "You have 160 dollars and save 7 dollars per week. Your friend has 210 dollars and saves 5 dollars per week. After how many weeks will each of you have saved the same amount of money?", + "Output Program": [ + "mySavings=160\nmySaveRatePerWeek=7\nfriendsSavings=210\nfriendsSaveRatePerWeek=5\nweekCountForSameSavings=abs(mySavings-friendsSavings)/abs(mySaveRatePerWeek-friendsSaveRatePerWeek)\nprint(weekCountForSameSavings)\n" + ], + "Output Answer": [ + "25" + ], + "split": "train" + }, + { + "Input": "A waiter at 'The Greasy Spoon' restaurant had 29.0 customers to wait on. During the lunch rush, he added another 20.0 customers. If 34.0 more customers came in, how many customers did he have total.", + "Output Program": [ + "waiting_customer=29\nadded_customer=20\nmore_customer=34\ntotal_customer=waiting_customer+added_customer+more_customer\nprint(total_customer)" + ], + "Output Answer": [ + "83" + ], + "split": "train" + }, + { + "Input": "At a movie theater , tickets cost 9.50 dollars for adults and 6.50 dollars for children. A group of 7 moviegoers pays a total of 54.50 dollars. How many adults were in the group?", + "Output Program": [ + "adultMovieRate=9.50\nchildMovieRate=6.50\ntotalPeople=7\ntotalCost=54.50\nadultsCount=(totalCost-(childMovieRate*totalPeople))/(adultMovieRate-childMovieRate)\nprint(adultsCount)\n" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Connie has 2315 red markers and 1028 blue markers. How many markers does Connie have altogether?", + "Output Program": [ + "red_marker=2315\nblue_marker=1028\ntotal_marker=red_marker+blue_marker\nprint(total_marker)\n" + ], + "Output Answer": [ + "3343" + ], + "split": "train" + }, + { + "Input": "Kelly had 56.0 apples, she picks 105.0 apples the next day. How many apples does Kelly have altogether.", + "Output Program": [ + "kelly_apples=56\npicked_next_day=105\ntotal_apples_kelly_have=kelly_apples+picked_next_day\nprint(total_apples_kelly_have)\n" + ], + "Output Answer": [ + "161" + ], + "split": "train" + }, + { + "Input": "Megan puts 8 albums in her online shopping card. She later removes 2. If each album has 7 songs, how many songs did megan buy in total.", + "Output Program": [ + "albums=6\nsongs=7\nmegan_buy_song=albums*songs\nprint(megan_buy_song)\n" + ], + "Output Answer": [ + "42" + ], + "split": "train" + }, + { + "Input": "Adolfo made a tower with 35.0 blocks. He added 65.0 more blocks to the tower. How many total blocks are in the tower now.", + "Output Program": [ + "blocks=35\nadded=65\ntotal_block=blocks+added\nprint(total_block)\n" + ], + "Output Answer": [ + "100" + ], + "split": "train" + }, + { + "Input": "There are 9.0 maple trees and 5.0 popular trees currently in the park. Park workers will cut down 2.0 maple trees today. How many maple trees will the park have when the workers are finished.", + "Output Program": [ + "maple_tree=9\ncut_down_tree=2\ntotal_maple_tree_in_park=maple_tree-cut_down_tree\nprint(total_maple_tree_in_park)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "A car rents for 30 dollars per day plus 23 cents per mile. You are on a daily budget of 76 dollars. What mileage can you go and stay within your budget?", + "Output Program": [ + "carRent=30\nperMileCost=0.23\ndailyBudget=76\nmileage=(dailyBudget-carRent)/perMileCost\nprint(mileage)\n" + ], + "Output Answer": [ + "200" + ], + "split": "train" + }, + { + "Input": "You and a friend go to a Mexican restaurant. You order 2 tacos and 3 enchiladas , and your friend orders 3 tacos and 5 enchiladas. Your bill is 7.80 dollars plus tax , and your friend 's bill is 12.70 dollars plus tax. How much does each enchilada cost?", + "Output Program": [ + "tacos=5\nenchiladas=8\nbill=7.80\nfriendbill=12.70\nenchalidacost=4.9\ncost=9.8\nenchilada=cost-bill\nprint(enchilada )" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "Two investments earn an annual income of 575 dollars. One investment earns an annual simple interest rate of 8.5 % , and the other investment earns an annual simple interest rate of 6.4 %. The amount invested is 8000 dollars. How much money is invested in the first investment", + "Output Program": [ + "income=575\ninterestrate=8.5\ninterestrate2=6.4\nInvested=8000\ntotalintrest=2.1\namout=6300\nfirstinvestment=amout/totalintrest\nprint(firstinvestment)" + ], + "Output Answer": [ + "3000" + ], + "split": "train" + }, + { + "Input": "If a perfect score is 21 points, and 3 games were played, how many points were earned per round.", + "Output Program": [ + "score=21\ngame=3\npoints_per_round=score/game\nprint(points_per_round)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "Sam has 6.0 puppies. He gave 2.0 of them to a friend. How many puppies does he have now.", + "Output Program": [ + "puppies=6\ngave_friend=2\nsam_have=puppies-gave_friend\nprint(sam_have)\n" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Joan has 10 books. Tom has 38 books. How many books do they have together ?", + "Output Program": [ + "books=10\ntom_has=38\ntotal_books=books+tom_has\nprint(total_books)" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "There are 47.0 eggs in a box. Harry puts 5.0 eggs in the box. How many eggs are in the box.", + "Output Program": [ + "each_box=47\nharry_puts=5\ntotal_eaggs_in_box=each_box+harry_puts\nprint(total_eaggs_in_box)\n" + ], + "Output Answer": [ + "52" + ], + "split": "train" + }, + { + "Input": "There is a jar with 3409.0 pieces of candy. There are also 145.0 secret eggs with a prize in them. How many items in total are in the jar.", + "Output Program": [ + "candy_pieces=3409\nprize=145\ntotal_item_in_jar=candy_pieces+prize\nprint(total_item_in_jar)\n" + ], + "Output Answer": [ + "3554" + ], + "split": "train" + }, + { + "Input": "Terry did all 25 problems on his test and got an 85. Scores are computed by giving 4 points for each right answer and subtracting one point for each wrong answer. How many problems did terry get wrong?", + "Output Program": [ + "totalProblems=25\nrightAnswerPoints=4\nwrongAnswerPoints=-1\nderivedPoints=85\nwrongAnswersCount=(derivedPoints-(rightAnswerPoints*totalProblems))/(wrongAnswerPoints-rightAnswerPoints)\nprint(wrongAnswersCount)" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "Admission tickets to a football game were 60 cents for adults and 25 cents for children. Receipts for the day showed that 280 persons attended and 140 dollars was collected. How many children attended?", + "Output Program": [ + "adultTicketRate=0.60\nchildTicketRate=0.25\ntotalTicketSold=280\ntotalEarning=140\nChildrenCount=(totalEarning-(adultTicketRate*totalTicketSold))/(childTicketRate-adultTicketRate)\nprint(ChildrenCount)\n" + ], + "Output Answer": [ + "80" + ], + "split": "train" + }, + { + "Input": "Willie starts with 36.0 stickers. Emily gives 7.0 to him. How many stickers does Willie end with.", + "Output Program": [ + "stickers=36\nemily_gives=7\nwille_have=stickers+emily_gives\nprint(wille_have)\n" + ], + "Output Answer": [ + "43" + ], + "split": "train" + }, + { + "Input": "There are some 2-dollar coins and some 5-dollar coins. There are 40 coins , which give a total amount of 125 dollars. How many 5-dollar coins are there?", + "Output Program": [ + "type1Coin=2\ntype2Coin=5\ntotalCoins=40\ntotalAmount=125\ntype2CoinCount=(totalAmount-(type1Coin*totalCoins))/(type2Coin-type1Coin)\nprint(type2CoinCount)" + ], + "Output Answer": [ + "15" + ], + "split": "train" + }, + { + "Input": "You had 6,800.00 dollars to spend and purchased 250 sets of dishes. If you spent everything , how many 20.00 dollars sets did you purchase?", + "Output Program": [ + "totalAmount=6800\npurchasedSets=250\nperSetAmount=20\nremainingSetCount=(totalAmount-(purchasedSets*perSetAmount))/perSetAmount\nprint(remainingSetCount)\n" + ], + "Output Answer": [ + "178" + ], + "split": "train" + }, + { + "Input": "Hannah's Vegetarian Restaurant bought 0.3333333333333333 of a pound of green peppers and 0.3333333333333333 of a pound of red peppers. How many pounds of peppers did Hannah's Vegetarian Restaurant buy in all?", + "Output Program": [ + "green_peppers=0.3333333333333333\nred_peppers=0.3333333333333333\ntotal_peppers=green_peppers+red_peppers\nprint(total_peppers)\n" + ], + "Output Answer": [ + "0.6666666667" + ], + "split": "train" + }, + { + "Input": "Joey makes 100 pounds of a coffee mix. Columbian coffee selling for 8.75 dollars per pound is mixed with Brazilian coffee selling for 3.75 dollars per pound. The final mix sells for 6.35 dollars per pound. How much of Columbian coffee is used in the mix?", + "Output Program": [ + "ColumbianCoffeeRate=8.75\nBrazilianCoffeeRate=3.75\nFinalMixCoffeeRate=6.35\nTotalCoffeeMixied=100\ntotalColumbianCoffeeUsed=(FinalMixCoffeeRate*TotalCoffeeMixied - TotalCoffeeMixied*BrazilianCoffeeRate)/(ColumbianCoffeeRate-BrazilianCoffeeRate)\nprint(totalColumbianCoffeeUsed)\n\n" + ], + "Output Answer": [ + "52" + ], + "split": "train" + }, + { + "Input": "Sam got 9 pennies for washing clothes, and 7 quarters for mowing lawns. How much money does Sam have?", + "Output Program": [ + "washing_clothes=9\nmowing_lawns=7\ntotal_money=washing_clothes/mowing_lawns\nprint(total_money)\n" + ], + "Output Answer": [ + "1.84" + ], + "split": "train" + }, + { + "Input": "The number of boys in eighth grade is 16 less than twice the number of girls. There are 68 students in eighth grade. How many are girls?", + "Output Program": [ + "students=68\ngirls=16\ntotal=84\ng=3\nanswer=total/g\nprint(answer)" + ], + "Output Answer": [ + "28" + ], + "split": "train" + }, + { + "Input": "Benny bought a soft drink for 2 dollars and 5 candy bars. He spent a total of 27 dollars. How much did each candy bar cost ?", + "Output Program": [ + "totalSpentAmount=27\nsoftDrinkPrice=2\ncandyBarCount=5\ncandyBarPrice= (totalSpentAmount-softDrinkPrice)/candyBarCount\nprint(candyBarPrice)\n" + ], + "Output Answer": [ + "5" + ], + "split": "train" + }, + { + "Input": "The sum of 2 numbers is 84. One number is 3 times the other. Find the smaller number", + "Output Program": [ + "sum_of_two_numbers=84\nsmaller_number=sum_of_two_numbers/4\nprint(smaller_number)" + ], + "Output Answer": [ + "21" + ], + "split": "train" + }, + { + "Input": "2.0 beavers were working on their home. Another 1.0 came to help. How many beavers are still working on their home.", + "Output Program": [ + "beavers=2\nanother_came_to_help=1\ntotal_beavers=beavers+another_came_to_help\nprint(total_beavers)\n" + ], + "Output Answer": [ + "3" + ], + "split": "train" + }, + { + "Input": "There were 610 people at a play. The admission price was 2 dollars for adults and 1 dollars for children. The admission receipts were 960 dollars. How many adults attended?", + "Output Program": [ + "TotalPeople=610\nTotalMoney=960\nAdultCustomerCount=TotalMoney - TotalPeople \nprint(AdultCustomerCount)\n" + ], + "Output Answer": [ + "350" + ], + "split": "train" + }, + { + "Input": "The total cost of a pair of pants and a belt was 70.93 dollars. If the price of the pair of pants was 2.93 dollars less than the belt , what was the price of the pair of pants?", + "Output Program": [ + "totalCost=70.93\ndifferenceBetweenTwoItems=2.93\nBeltPrice=(totalCost+differenceBetweenTwoItems)/2\nPantsPrice=BeltPrice-differenceBetweenTwoItems\nprint(PantsPrice)\n" + ], + "Output Answer": [ + "34" + ], + "split": "train" + }, + { + "Input": "Faye bought 48.0 coloring books. If she gave away 34.0 of them, and then gave away 3.0 more, how many would she have left.", + "Output Program": [ + "faye_bought=48\ngave_away=34\ngave_more=3\nfaye_books_left=faye_bought-gave_away-gave_more\nprint(faye_books_left)\n" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "A student is pricing 2 different picture packages. John 's Photo World charges 2.75 dollars per sheet and a one time sitting fee of 125 dollars. Sam 's Picture Emporium charges 1.50 dollars per sheet and a one time sitting fee of 140 dollars. For how many sheets of pictures do the 2 companies charge the same amount?", + "Output Program": [ + "Package1ChargePerSheet=2.75\nPackage1SittingFee=125\nPackage2ChargePerSheet=1.50\nPackage2SittingFee=140\nSheetCountForSameAmount=abs(Package1SittingFee-Package2SittingFee)/abs(Package1ChargePerSheet-Package2ChargePerSheet)\nprint(SheetCountForSameAmount)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Dan has 5 blue marbles. Mary has 2 times more blue marbles than Dan. How many blue marbles does Mary have ?", + "Output Program": [ + "blue_marbles=5\nmary_has=2\ntotal_marbles_mary_has=blue_marbles*mary_has\nprint(total_marbles_mary_has)\n" + ], + "Output Answer": [ + "10" + ], + "split": "train" + }, + { + "Input": "Nancy has 7.0 black balloons. If Nancy has 4 times the number of black balloons than Mary has, how many balloons does Mary have.", + "Output Program": [ + "balck_balloons=7\nnancy_has=4\nballoons_mary_have=balck_balloons/nancy_has\nprint(balloons_mary_have)\n" + ], + "Output Answer": [ + "1.75" + ], + "split": "train" + }, + { + "Input": "There are 64.0 pigs in the barn. 86.0 more pigs come to join them. How many pigs came are there now.", + "Output Program": [ + "pigs=64\nmore_added=86\ntotal_pigs=pigs+more_added\nprint(total_pigs)\n" + ], + "Output Answer": [ + "150" + ], + "split": "train" + }, + { + "Input": "One number exceeds another by 10 and their sum is 34. Find the larger number.", + "Output Program": [ + "sum_of_two_numbers=34\nlarger_number=(sum_of_two_numbers+10)/2\nprint(larger_number)" + ], + "Output Answer": [ + "22" + ], + "split": "train" + }, + { + "Input": "The Rhapsody Theater sold 800 total tickets. An advanced ticket costs 14.50 dollars and a ticket at the door costs 22.00 dollars. In all , 16,640 dollars was taken in. How many tickets were sold at the door?", + "Output Program": [ + "total_tickets=800\nadvance_ticket_cost=14.50\nticket_at_the_door_cost=22\ntotal_amount=16640\ncount_of_ticket_at_the_door=(total_amount-(total_tickets*advance_ticket_cost))/(ticket_at_the_door_cost-advance_ticket_cost)\nprint(count_of_ticket_at_the_door)\n" + ], + "Output Answer": [ + "672" + ], + "split": "train" + }, + { + "Input": "Jose has 85 peanuts. Kenya has 48 more than Jose. How many peanuts does Kenya have?", + "Output Program": [ + "jose=85\nkenya=48\nkenya_peanuts=jose+kenya\nprint(kenya_peanuts)\n" + ], + "Output Answer": [ + "133" + ], + "split": "train" + }, + { + "Input": "On the first day of the week, Pat had 39.0 stickers. Pat gave away 22.0 stickers during the week. How many stickers did Pat have at the end of the week.", + "Output Program": [ + "stickers=39\nduring_week=22\nend_of_the_week_sticker=stickers-during_week\nprint(end_of_the_week_sticker)" + ], + "Output Answer": [ + "17" + ], + "split": "train" + }, + { + "Input": "One integer is twice another , and their sum is 96. Find the smaller integer.", + "Output Program": [ + "a=1\nb=2\nsum=96\nsmaller_interger=sum/3\nprint(smaller_interger)\n" + ], + "Output Answer": [ + "32" + ], + "split": "train" + }, + { + "Input": "Tom has 30 violet balloons, he gave Fred 16 of the balloons. How many violet balloons does he now have ?", + "Output Program": [ + "violet_ballons=30\ngave_fred=16\ntotal_violet_balloons=violet_ballons-gave_fred\nprint(total_violet_balloons)\n" + ], + "Output Answer": [ + "14" + ], + "split": "train" + }, + { + "Input": "Together , Jane and Jill have 32 dolls. Jill has 6 more dolls than Jane does. How many dolls does Jane have?", + "Output Program": [ + "total_dolls=32\njane_dolls_count=(total_dolls-6)/2\nprint(jane_dolls_count)\n" + ], + "Output Answer": [ + "13" + ], + "split": "train" + }, + { + "Input": "The sum of 2 numbers is 27. 0.5 of the first number plus 0.3333 of the second number is 11. Find the larger number.", + "Output Program": [ + "sum_of_two_number=27\none_number=(11-(sum_of_two_number*0.5))/(0.3333-0.5)\nif one_number>sum_of_two_number/2 :\n print(one_number)\nelse:\n print(sum_of_two_number-one_number)\n" + ], + "Output Answer": [ + "15" + ], + "split": "train" + }, + { + "Input": "The difference between two numbers is 9. Find the smaller number , if their sum is 46.", + "Output Program": [ + "sum_of_two_numbers=36\nsmaller_number=(sum_of_two_numbers-9)/2\nprint(smaller_number)\n" + ], + "Output Answer": [ + "18.5" + ], + "split": "train" + }, + { + "Input": "Paul had 78.0 strawberries in his basket. He ate 42.0 of them. How many strawberries does he now have.", + "Output Program": [ + "strawberries=78\neat=42\nstrawberries_does_he_now=strawberries-eat\nprint(strawberries_does_he_now)\n" + ], + "Output Answer": [ + "36" + ], + "split": "train" + }, + { + "Input": "Sally has 9.0 orange balloons and 4.0 blue balloons . She found 2.0 more of the orange balloons . How many orange balloons does Sally have now .", + "Output Program": [ + "orange_balloons=9\nblue_balloons=4\nfound=2\nsally_orange_balloons=orange_balloons+found\nprint(sally_orange_balloons)\n" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "Tim has 22 books. Mike has 20 books. How many books do they have together ?", + "Output Program": [ + "tim_book=22\nmike_book=20\ntotal_book=tim_book+mike_book\nprint(total_book)" + ], + "Output Answer": [ + "42" + ], + "split": "train" + }, + { + "Input": "A recipe calls for 18.0 servings of cereal. Each serving is 2.0 cups. How many cups are needed.", + "Output Program": [ + "servings_cereal=18\ncups=2\nneeded_cups=servings_cereal*cups\nprint(needed_cups)\n" + ], + "Output Answer": [ + "36" + ], + "split": "train" + }, + { + "Input": "A car rents for 50 dollars a day plus 20 cents a mile. You are on a daily budget of 88 dollars. What maximum mileage will allow you to stay within your budget?", + "Output Program": [ + "daily_budget=88\ncar_rent=50\nper_mile_cost=0.20\nmaximun_milage=(daily_budget-car_rent)/per_mile_cost\nprint(maximun_milage)\n" + ], + "Output Answer": [ + "190" + ], + "split": "train" + }, + { + "Input": "Uncle Dave has 11.0 hungry nieces. If he wants to give each niece 143.0 ice cream sandwiches, how many ice cream sandwiches must he buy.", + "Output Program": [ + "hungery_nieces=11\nice_cream_sandwitch=143\ntotal_ice_cream_sandwhichs=ice_cream_sandwitch*hungery_nieces\nprint(total_ice_cream_sandwhichs)\n" + ], + "Output Answer": [ + "1573" + ], + "split": "train" + }, + { + "Input": "1.3333 of a number is 4.82 , what is the number?", + "Output Program": [ + "number=1.3333\nnumber_one=4.82\nnumber_is=number_one-number\nprint(number_is)\n" + ], + "Output Answer": [ + "3.615" + ], + "split": "train" + }, + { + "Input": "Heather has 60.0 oranges. Russell gave her 35.0 more. How many oranges does Heather have.", + "Output Program": [ + "orange=6\nrussell_gave=35\ntotal_orange=orange+russell_gave\nprint(total_orange)\n" + ], + "Output Answer": [ + "95" + ], + "split": "train" + }, + { + "Input": "Michael has 49.0 fish. Ben gives him 18.0 more fish. How many does he have now.", + "Output Program": [ + "fish=49\nben_gives_fish=18\ntotal_fish_michel_have=fish+ben_gives_fish\nprint(total_fish_michel_have)\n" + ], + "Output Answer": [ + "67" + ], + "split": "train" + }, + { + "Input": "Fred found 47 seashells on the beach, he gave Jessica 25 of the seashells. How many seashells does he now have ?", + "Output Program": [ + "fred_foud_seashells=47\ngave_jessica=25\nfred_reamning=fred_foud_seashells-gave_jessica\nprint(fred_reamning)\n" + ], + "Output Answer": [ + "22" + ], + "split": "train" + }, + { + "Input": "Olivia was making baggies of cookies with 9.0 cookies in each bag. If she had 41.0 cookies, 13.0 chocolate chip cookies and the rest were oatmeal cookies, how many baggies of oatmeal cookies could she make.", + "Output Program": [ + "cookies=41\nchoclate=13\noatmeal_cookies_bags=cookies/choclate\nprint(oatmeal_cookies_bags)\n" + ], + "Output Answer": [ + "3.111111111" + ], + "split": "train" + }, + { + "Input": "In a basketball game , Will scored 26 points , consisting only of 3-point shots and 2-point shots. He made a total of 11 shots. How many 3-point shots did he make?", + "Output Program": [ + "scored=26\npoint_shots=11\nshots=22\nanswer=scored-shots\nprint(answer)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Admission tickets to a theater were 60 cents for adults and 25 cents for children. Receipts for the day showed that 280 persons attended and 140 dollars was collected. How many children attended that day?", + "Output Program": [ + "cents_for_adults=60\ncents_for_children=25\npersons=280\ndollars=140\nX=2800\nY=35\nChildren_attended=X/Y\nprint(Children_attended)" + ], + "Output Answer": [ + "80" + ], + "split": "train" + }, + { + "Input": "Sandy 's dog had 8.0 puppies, and 3.0 had spots . Her friend gave 4.0 more puppies to Sandy. How many puppies does she now have .", + "Output Program": [ + "puppies=8\nfriend_give=4\ntotal_puppies=puppies+friend_give\nprint(total_puppies)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Connie has 64.0 red and blue markers. 41.0 of the markers are red. How many markers are blue.", + "Output Program": [ + "red_and_blue_marer=64\nred_marer=41\nblue_marker=red_and_blue_marer-red_marer\nprint(blue_marker)\n" + ], + "Output Answer": [ + "23" + ], + "split": "train" + }, + { + "Input": "There are 7 dogwood trees currently in the park. Park workers will plant 3 more dogwood trees today and 2 more dogwood trees tomorrow. How many dogwood trees will the park have when the workers are finished ?", + "Output Program": [ + "dogwood=7\nworkers_added=3\ntomorrow_add=2\ntotal_dog_wood=dogwood+workers_added+tomorrow_add\nprint(total_dog_wood)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "How many liters of a 60 % acid solution must be mixed with a 75 % acid solution to get 20 liters of a 72 % solution?", + "Output Program": [ + "acid=60\nmixed=75\nliters=20\nX=0.15\nY=0.6\nanswer=Y/X\nprint(answer)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Tickets for a show cost 6.00 dollars for adults and 4.50 dollars for children. 400 tickets were sold for a total of 2100 dollars. how many childrens tickets were sold?", + "Output Program": [ + "costfor_adults=6\ncostfor_children=4.50\ntotal=2100\ny=200\nsold_childrenticket=y\nprint(sold_childrenticket)\n\n" + ], + "Output Answer": [ + "200" + ], + "split": "train" + }, + { + "Input": "For dessert, Jane\u2019s mom prepared 12.0 pieces of bite-size cinnamon swirls. If the 3.0 of them ate an equal number of pieces of cinnamon swirls, how many pieces did Jane eat.", + "Output Program": [ + "pieces=12\nnumber=3\njane_eat=pieces/number\nprint(jane_eat)" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "At a hotel one night , 260 rooms were booked. Some were single rooms and some were double rooms. The single rooms cost 35 dollars each and the double rooms cost 60 dollars. The hotel made 14000 dollars that night. How many single rooms were booked?", + "Output Program": [ + "rooms=260\nsingleroomcost=35\ndoubaleroomcost=60\nhotel_made=14000\nX=64\nY=196\nsingle_room=X\nprint(single_room)" + ], + "Output Answer": [ + "64" + ], + "split": "train" + }, + { + "Input": "Mary loves eating fruits. Mary paid $11.08 for berries, $14.33 for apples, and $9.31 for peaches. In total, how much money did she spend?", + "Output Program": [ + "berriess=11.08\napples=14.33\npeaches=9.31\ntotal_spend=berriess+apples+peaches\nprint(total_spend)\n" + ], + "Output Answer": [ + "34.72" + ], + "split": "train" + }, + { + "Input": "There are 37 baskets. There are 17 apples in each basket. How many apples are there in all?", + "Output Program": [ + "baset=37\napples=17\neach_basket_apple=baset*apples\nprint(each_basket_apple)\n" + ], + "Output Answer": [ + "629" + ], + "split": "train" + }, + { + "Input": "Norma has 88.0 cards. She finds 70.0 more cards. How many cards will Norma have.", + "Output Program": [ + "cards=88\nfind_more=70\ntotal_card=cards+find_more\nprint(total_card)\n" + ], + "Output Answer": [ + "158" + ], + "split": "train" + }, + { + "Input": "Mrs. Hilt saw 2.0 bugs eat 3.0 flowers. How many flowers did each bug eat.", + "Output Program": [ + "bugs=2\neat=3\nhilt_eat=eat/bugs\nprint(hilt_eat)\n" + ], + "Output Answer": [ + "1.5" + ], + "split": "train" + }, + { + "Input": "John can read 4 books a day. John reads every Monday and Tuesday. How many books would John read in 6 weeks?", + "Output Program": [ + "books_read_day=4\ndays=2\njhon_read=6\njhon_total_read=books_read_day*days*jhon_read\nprint(jhon_total_read)\n" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "Ethan has 31.0 presents. Alissa has 22.0 less than Ethan. How many presents does Alissa have.", + "Output Program": [ + "presents=31\nalissa=22\nalissa_present=presents-alissa\nprint(alissa_present)\n" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "If Harold gave 15.0 apples each to 3.0 people in her class, how many apples did they have in all.", + "Output Program": [ + "apples=15\npeople=3\nall_apples=apples*people\nprint(all_apples)\n" + ], + "Output Answer": [ + "45" + ], + "split": "train" + }, + { + "Input": "Kevin finds 47.0 cards. He loses 7.0 cards. How many cards does Kevin end with.", + "Output Program": [ + "finds=47\nloses=7\nkevin_end_with=finds-loses\nprint(kevin_end_with)\n" + ], + "Output Answer": [ + "40" + ], + "split": "train" + }, + { + "Input": "Daniel had 54.0 noodles. He gave 12.0 noodles to William. How many noodles did Daniel have left.", + "Output Program": [ + "noodels=54\ngave_william=12\ndaniel_left_noodle=noodels-gave_william\nprint(daniel_left_noodle)\n" + ], + "Output Answer": [ + "42" + ], + "split": "train" + }, + { + "Input": "Connie had some marbles. Connie gave 183.0 to Juan. Now Connie has 593.0 marbles left. How many did Connie have to start with.", + "Output Program": [ + "connie_gave=183\nconnie_marble=593\nconnie_start_with=connie_marble+connie_gave\nprint(connie_start_with)\n" + ], + "Output Answer": [ + "776" + ], + "split": "train" + }, + { + "Input": "Mary had 7 nickels in her bank. Her dad gave her 5 more nickels. How many nickels does Mary have now ?", + "Output Program": [ + "nickels=7\ndad_give=5\ntotal_nickle=nickels+dad_give\nprint(total_nickle)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "A restaurant sold 63 hamburgers last week. How many hamburgers on average were sold each day ?", + "Output Program": [ + "hamburgers=63\nweek_days=7\nhamburger_sale_each_day=hamburgers/week_days\nprint(hamburger_sale_each_day)" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "21.0 birds were sitting in a tree. 14.0 more birds flew away. How many birds are there left in the tree.", + "Output Program": [ + "birds=21\nflew_birds=14\nbirds_on_tree=birds-flew_birds\nprint(birds_on_tree)" + ], + "Output Answer": [ + "7" + ], + "split": "train" + }, + { + "Input": "Ella owns two dogs. Each day, one dog eats 0.125 of a scoop of dog food and the other dog eats 0.125 of a scoop. Together, how much dog food do the two dogs eat each day?", + "Output Program": [ + "one_dog_eat=0.125\ntwo_dog_eat=0.125\ntotal_eat=one_dog_eat+two_dog_eat\nprint(total_eat)\n" + ], + "Output Answer": [ + "0.25" + ], + "split": "train" + }, + { + "Input": "Mary is baking a cake . The recipe calls for 7.0 cups of flour and 3.0 cups of sugar . She decides to put in extra 2.0 cups of flour . How many cups of flour does she put in total.", + "Output Program": [ + "flour=7\nsugar=3\nadded=2\ntotal_cup=flour+added\nprint(total_cup)\n" + ], + "Output Answer": [ + "9" + ], + "split": "train" + }, + { + "Input": "Sally earns $25.00 for each house she cleans. If she cleans 96 houses, how many dozens of dollars will she make?", + "Output Program": [ + "sally_earn=25\nclean_home=96\none_doznes=12\nsally_earn_dollars=clean_home*sally_earn/one_doznes\nprint(sally_earn_dollars)\n" + ], + "Output Answer": [ + "200" + ], + "split": "train" + }, + { + "Input": "Betty bought 88.0 pink flower stones and wanted to make 8.0 bracelets out of these stones. How many pink flower stones will each bracelet have if she used the same number of stones in each bracelet.", + "Output Program": [ + "pink_flower_stone=88\nbracelets=8\nnumber_of_stones=pink_flower_stone/bracelets\nprint(number_of_stones)" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "If Lawrence walked 4.0 kilometers a day for 3.0 days, how may kilometers did Lawrence walk in total.", + "Output Program": [ + "lawrence_walked=4\ndays=3\nkilo_meters_lawrence_walk=lawrence_walked*days\nprint(kilo_meters_lawrence_walk)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Jerry Weller received 20,196 more votes than opponent John Pavich. If the total number of votes was 196,554 , find the number of votes for Jerry.", + "Output Program": [ + "jerry_recevied=20196\ntotal_vote=196554\njerry_votes=total_vote-jerry_recevied\nprint(jerry_votes)\n" + ], + "Output Answer": [ + "108375" + ], + "split": "train" + }, + { + "Input": "You have 7.0 balloons, and your friend gives you 5.0 balloons. How many balloons do you have.", + "Output Program": [ + "balloons=7\nfriend_gave=5\ntotal_balloons=balloons+friend_gave\nprint(total_balloons)\n" + ], + "Output Answer": [ + "12" + ], + "split": "train" + }, + { + "Input": "Marie biked for 31.0 miles at a speed of 12.0 miles an hour. How long did she bike for.", + "Output Program": [ + "speed=12\nmiles=31\ntime=miles/speed\nprint(time)\n" + ], + "Output Answer": [ + "2.583333333" + ], + "split": "train" + }, + { + "Input": "James has 1222 balloons. Amy has 513 balloons. How many more balloons does James have than Amy?", + "Output Program": [ + "balloons=1222\namy=513\njames_baloons=balloons-amy\nprint(james_baloons)\n\n" + ], + "Output Answer": [ + "709" + ], + "split": "train" + }, + { + "Input": "There are 5.0 candy bars. How many candy bars will each person get if split between 3.0 .", + "Output Program": [ + "candy_bar=5\nperson=3\ncandy_bar_in_each_person=candy_bar/person\nprint(candy_bar_in_each_person)" + ], + "Output Answer": [ + "1.66666666699999" + ], + "split": "train" + }, + { + "Input": "Jill invited 37.0 people to her birthday party. If each pizza is divided into 8 equal parts, and each person eats 1.0 slice, how many pizzas were eaten.", + "Output Program": [ + "jill_invited=37\nparts=8\npizza_on_eat=jill_invited/parts\nprint(pizza_on_eat)" + ], + "Output Answer": [ + "4.625" + ], + "split": "train" + }, + { + "Input": "Martha is inviting 4.0 friends to a party. She has 12.0 cookies for each friend. How many cookies does she have.", + "Output Program": [ + "martha_friend=4\ncookies=12\ntotal_cookies=martha_friend*cookies\nprint(total_cookies)\n" + ], + "Output Answer": [ + "48" + ], + "split": "train" + }, + { + "Input": "Ted wants to put 5.0 candy bars in each of his 15.0 bags. How many candy bars does Ted need to do this.", + "Output Program": [ + "bags=15\ncandy=5\ntotal_candy_bar=bags*candy\nprint(total_candy_bar)\n" + ], + "Output Answer": [ + "75" + ], + "split": "train" + }, + { + "Input": "Joan bought 6 dozen eggs from the grocery store to bake some cakes. How many eggs did Joan buy ?", + "Output Program": [ + "eggs_dozen=6\none_dozen=12\ntotal_eggs_jhon_buy=eggs_dozen*one_dozen\nprint(total_eggs_jhon_buy)\n" + ], + "Output Answer": [ + "72" + ], + "split": "train" + }, + { + "Input": "The Sumata family drove 250.0 miles in 5.0 days. How many miles did they drive per day.", + "Output Program": [ + "miles=250\ndays=5\ndrive_per_day=miles/days\nprint(drive_per_day)\n" + ], + "Output Answer": [ + "50" + ], + "split": "train" + }, + { + "Input": "There are 39 dogwood trees currently in the park. Park workers will plant 41 more dogwood trees today and 20 more dogwood trees tomorrow. How many dogwood trees will the park have when the workers are finished ?", + "Output Program": [ + "dogwood=39\ntoday_added_tree=41\ntomorrow_added_tree=20\ntotal_dogwood=dogwood+today_added_tree+tomorrow_added_tree\nprint(total_dogwood)\n" + ], + "Output Answer": [ + "100" + ], + "split": "train" + }, + { + "Input": "Kimberly has 7.0 Skittles. She eats 5.0 . Later, Kimberly buys 18.0 oranges at the store. How many Skittles does Kimberly have in all.", + "Output Program": [ + "kimberly_has=7\neat=5\ntotal_skittles=kimberly_has-eat\nprint(total_skittles)\n" + ], + "Output Answer": [ + "2" + ], + "split": "train" + }, + { + "Input": "There are 12.0 birds on the fence. 8.0 birds fly away. How many birds are on the fence.", + "Output Program": [ + "birds_on_fence=12\nfly_birds=8\nbirds_on_fence=birds_on_fence-fly_birds\nprint(birds_on_fence)\n" + ], + "Output Answer": [ + "4" + ], + "split": "train" + }, + { + "Input": "Tessa has 10.0 apples. Anita gives her 5.0 more. She needs 4.0 apples to make a pie. How many will be left.", + "Output Program": [ + "tessa_has=10\nanita_gives=5\nneeds=4\nneed_apples=tessa_has+anita_gives-needs\nprint(need_apples)\n" + ], + "Output Answer": [ + "11" + ], + "split": "train" + }, + { + "Input": "Fred has 5 baseball cards. Melanie bought 3 of Fred's baseball cards. How many baseball cards does Fred have now ?", + "Output Program": [ + "baseball=5\nmealanie_bought=3\nfred_baseball_card=baseball-mealanie_bought\nprint(fred_baseball_card)\n" + ], + "Output Answer": [ + "2" + ], + "split": "test" + }, + { + "Input": "Arthur baked 35.0 muffins. He baked 83.0 more. How many muffins did Arthur bake.", + "Output Program": [ + "muffins_baked=35\nbaked_more=83\ntotal_muffins_baked=muffins_baked+baked_more\nprint(total_muffins_baked)\n" + ], + "Output Answer": [ + "118" + ], + "split": "test" + }, + { + "Input": "My dog had 860.0 bones, and then he dug up 367.0 bones, How many bones does he have now.", + "Output Program": [ + "bones_my_dog=860\ndug_up=367\ntotal_bones_dog_have=bones_my_dog+dug_up\nprint(total_bones_dog_have)\n" + ], + "Output Answer": [ + "1227" + ], + "split": "test" + }, + { + "Input": "Tessa needs 10.0 apples to make a pie. She has 5.0 apples but Anita eats 4.0 of them. How many more apples does she need.", + "Output Program": [ + "apples=10\ntessa_have=5\nanita_eat=4\nneed_apples=apples+tessa_have-anita_eat\nprint(need_apples)\n" + ], + "Output Answer": [ + "9" + ], + "split": "test" + }, + { + "Input": "A textbook costs a bookstore 44 dollars , and the store sells it for 55 dollars. Find the amount of profit based on the selling price.", + "Output Program": [ + "price=44\nsells_price=55\nprofit=sells_price-price\nprint(profit)\n" + ], + "Output Answer": [ + "11" + ], + "split": "test" + }, + { + "Input": "22.0 boys are standing near the slide. 13.0 more boys went down the slide. How many boys have not gone down the slide.", + "Output Program": [ + "standing_near_the_slide=22\nmore_boys=13\nboys_gone_the_slide=standing_near_the_slide-more_boys\nprint(boys_gone_the_slide)\n" + ], + "Output Answer": [ + "9" + ], + "split": "test" + }, + { + "Input": "Jane\u2019s mom picked cherry tomatoes from their backyard. If she gathered 56.0 cherry tomatoes and is about to place them in small jars which can contain 8.0 cherry tomatoes at a time, how many jars will she need.", + "Output Program": [ + "cherry_tomatos=56\nconatin_cherry_tomatos=8\njars_she_needs=cherry_tomatos/conatin_cherry_tomatos\nprint(jars_she_needs)\n" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "Pedro goes to the market and buys a total of 32 plums and peaches for 52 dollars. A plum costs 2 dollars and a peach costs 1 dollars. How many plums did Pedro buy?", + "Output Program": [ + "plums=32\npeaches=52\ncosts=2\nplums1=12\nplums_buy=plums-plums1\nprint(plums_buy)" + ], + "Output Answer": [ + "20" + ], + "split": "test" + }, + { + "Input": "A high school sold gift wrap. The gift wrap in solid colors sold for 4.00 dollars per roll and the print gift wrap sold for 6.00 dollars per roll. The total number of rolls sold was 480 rolls , and the total amount of money collected was 2,340.00 dollars. How many solid rolls were sold?", + "Output Program": [ + "Rolls_sold=480\nCost=4\nWrap_sold=6\nMoney=2340\ndiffrence=2\nSold=(Rolls_sold*Wrap_sold-Money)/diffrence\nprint(Sold)" + ], + "Output Answer": [ + "270" + ], + "split": "test" + }, + { + "Input": "2 similar tables and 6 similar chairs cost 6600 dollars. If the table cost 500 dollars more than a chair , what is the cost , in dollars , of the table?", + "Output Program": [ + "tablecost=500\nchaircost=6600\nsimilar_tale=2\nsimilar_chair=6\ntotal=8\ncost_of_each_chair=700\ntable_cost=cost_of_each_chair+tablecost\nprint(table_cost)" + ], + "Output Answer": [ + "1200" + ], + "split": "test" + }, + { + "Input": "Charlie has 31.0 more snowballs than Lucy. She has 19.0 snowballs. Charlie has ____ snowballs .", + "Output Program": [ + "snow_balls=31\ncharlie_has=19\ntotal_snow_balls=snow_balls+charlie_has\nprint(total_snow_balls)\n" + ], + "Output Answer": [ + "50" + ], + "split": "test" + }, + { + "Input": "The selling price of a pair of pants is 34 dollars. If the store paid 8 dollars less for the pants , find the price that the store paid , in dollars.", + "Output Program": [ + "pants_price=34\ncost=8\nstore_paid_price=pants_price-cost\nprint(store_paid_price)" + ], + "Output Answer": [ + "26" + ], + "split": "test" + }, + { + "Input": "For the fifth grade play, there is 27.0 pages of script. There are 16.0 children in the play. How many pages do they have to learn each.", + "Output Program": [ + "pages=27\nchildren=16\nlern_pages=pages/children\nprint(lern_pages)\n" + ], + "Output Answer": [ + "1.6875" + ], + "split": "test" + }, + { + "Input": "Tyler has 5.0 dogs. The dogs had a total of 15.0 puppies. How many puppies were had per dog.", + "Output Program": [ + "dogs=5\npuppies=15\nper_dog_puppies=puppies/dogs\nprint(per_dog_puppies)" + ], + "Output Answer": [ + "3" + ], + "split": "test" + }, + { + "Input": "A carpenter gave an estimate of 980 dollars to build a cover over a patio. His hourly rate is 28 dollars and he expects to need 560 dollars in materials. How many hours will the job take?", + "Output Program": [ + "carpenter_gave=980\nhourly_rate=28\nmaterials=560\nhours=(carpenter_gave-materials)/hourly_rate\nprint(hours)" + ], + "Output Answer": [ + "15" + ], + "split": "test" + }, + { + "Input": "Irwin's family went on a camping trip in the mountains. On the first day, they hiked from their car to the campsite. First, they hiked 0.2 of a mile from the car to a stream, and 0.4 of a mile from the stream to a meadow. Then they hiked 0.1 of a mile from the meadow to the campsite. How many miles did Irwin's family hike in all?", + "Output Program": [ + "car_to_stream=0.2\nstream_to_meadow=0.4\nmeadow_to_campsite=0.1\nirwin_family_total_hike=car_to_stream+stream_to_meadow+meadow_to_campsite\nprint(irwin_family_total_hike)\n" + ], + "Output Answer": [ + "0.7" + ], + "split": "test" + }, + { + "Input": "There are 7066 known nesting pairs of bald eagles in the lower 48 states today. This is 6649 more pairs than in 1963. How many nesting pairs of bald eagles were there in the lower 48 states in 1963?", + "Output Program": [ + "bald_eagles=7066\nmore_pairs=6649\nnesting_pairs_of_bald_eagles=bald_eagles-more_pairs\nprint(nesting_pairs_of_bald_eagles)" + ], + "Output Answer": [ + "417" + ], + "split": "test" + }, + { + "Input": "Kelly has 50.0 Nintendo games. Then she received 35.0 more. How many does she have now.", + "Output Program": [ + "Nintendo_games=50\nrecevied=35\ntotal=Nintendo_games+recevied\nprint(total)\n" + ], + "Output Answer": [ + "85" + ], + "split": "test" + }, + { + "Input": "Ellen had 380.0 legos, but Ellen lost 57.0 of them. How many legos does Ellen have now.", + "Output Program": [ + "legos=380\nellen_lost=57\nellen_have=legos-ellen_lost\nprint(ellen_have)" + ], + "Output Answer": [ + "323" + ], + "split": "test" + }, + { + "Input": "Shirley sold 20.0 boxes of Do-Si-Dos. Each box has 4.0 packs. How many packs did she sell in total.", + "Output Program": [ + "shirley_sold=20\npacks=4\npacks_shirley_sold=shirley_sold*packs\nprint(packs_shirley_sold)\n" + ], + "Output Answer": [ + "80" + ], + "split": "test" + }, + { + "Input": "A renovation project required 0.16666666666666666 of a truck-load of sand, 0.3333333333333333 of a truck-load of dirt, and 0.16666666666666666 of a truck-load of cement. How many truck-loads of material were needed in all?", + "Output Program": [ + "sand_truck_load=0.16666666666666666\ndirt_truck_load=0.3333333333333333\ncement_truck_load=0.16666666666666666\ntotal_truck_load=sand_truck_load+dirt_truck_load+cement_truck_load\nprint(total_truck_load)\n" + ], + "Output Answer": [ + "0.6666666667" + ], + "split": "test" + }, + { + "Input": "Third-grade students went to a concert in 8.0 buses. There were 45.0 students total. How many students went in each bus.", + "Output Program": [ + "buses=8\nstudents=45\nstudents_in_each_bus=students/buses\nprint(students_in_each_bus)" + ], + "Output Answer": [ + "5.625" + ], + "split": "test" + }, + { + "Input": "Sally picked 7 lemons and Mary picked 9 lemons from the lemon tree. How many lemons were picked in total ?", + "Output Program": [ + "sally_picked=7\nmary_picked=9\ntotal_lemon=sally_picked+mary_picked\nprint(total_lemon)\n" + ], + "Output Answer": [ + "16" + ], + "split": "test" + }, + { + "Input": "Isabella's hair is 18.0 inches long. She just got 9.0 inches cut off. How long was her hair before she got it cut.", + "Output Program": [ + "isabells_hair=18\ncut_inches=9\nbefore_cut_hair=isabells_hair+cut_inches\nprint(before_cut_hair)" + ], + "Output Answer": [ + "27" + ], + "split": "test" + }, + { + "Input": "Megan has 19.0 seashells. If Megan finds 25.0 new seashells, how many does she have in her collection now.", + "Output Program": [ + "seashells=19\nnew_seashells=25\ntotal_seashells=new_seashells+seashells\nprint(total_seashells)" + ], + "Output Answer": [ + "44" + ], + "split": "test" + }, + { + "Input": "Nancy has saved 4900 cents from selling lemonade. How many dollars does Nancy have?", + "Output Program": [ + "nancy_saved=4900\none_dollars=100\nnancy_have=nancy_saved/one_dollars\nprint(nancy_have)" + ], + "Output Answer": [ + "49" + ], + "split": "test" + }, + { + "Input": "We have a pile with 100.0 seeds in it. Those seeds came from 4.0 watermelons. How many seeds were there in each.", + "Output Program": [ + "seeds=100\nseeds_from_watermelons=4\nseeds_in_each=seeds/seeds_from_watermelons\nprint(seeds_in_each)" + ], + "Output Answer": [ + "25" + ], + "split": "test" + }, + { + "Input": "James had 22.0 carrot sticks before dinner. He had 15.0 left after dinner. How many carrot sticks did he eat.", + "Output Program": [ + "before_dinner=22\nafter_dinner=15\ntotal_eat=before_dinner-after_dinner\nprint(total_eat)\n" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "Brandy made trail mix for a backpacking trip. She used 0.16666666666666666 of a pound of peanuts, 0.16666666666666666 of a pound of chocolate chips, and 0.08333333333333333 of a pound of raisins. How many pounds of trail mix did Brandy make?", + "Output Program": [ + "peanuts=0.16666666666666666\nchocolate_chips=0.16666666666666666\nraisins=0.08333333333333333\ntotal_taril_mix=peanuts+chocolate_chips+raisins\nprint(total_taril_mix)" + ], + "Output Answer": [ + "0.4166666667" + ], + "split": "test" + }, + { + "Input": "Tim has 13 dozen golf balls. How many golf balls does he have ?", + "Output Program": [ + "tim_has_dozen_balls=13\none_dozen=12\ntotal_golf_ball=tim_has_dozen_balls*one_dozen\nprint(total_golf_ball)" + ], + "Output Answer": [ + "156" + ], + "split": "test" + }, + { + "Input": "Hayley has 25.0 meatballs. Kirsten gave her 11.0 more. How many meatballs does Hayley have now.", + "Output Program": [ + "meatballs=25\nkirsten_gave=11\nhayley_meatball=meatballs+kirsten_gave\nprint(hayley_meatball)\n" + ], + "Output Answer": [ + "36" + ], + "split": "test" + }, + { + "Input": "Tony planted a 4 foot tree. The tree grows at a rate of 5 feet every year. How many years will it take to be 29 feet?", + "Output Program": [ + "\ngrow_feet_every_year=5\nhit=25\nyears=hit/grow_feet_every_year\nprint(years)\n" + ], + "Output Answer": [ + "5" + ], + "split": "test" + }, + { + "Input": "Dan found 7 seashells but 3 were broken. How many unbroken seashells did Dan find ?", + "Output Program": [ + "seashells=7\nbroken=3\nunbroken_seashells=seashells-broken\nprint(unbroken_seashells)" + ], + "Output Answer": [ + "4" + ], + "split": "test" + }, + { + "Input": "Sarah picked 45.0 apples. Her brother picked 9.0 times as many apples as her. How many apples did Sarah's brother pick.", + "Output Program": [ + "apples_picked_sara=45\nbrother_picked=9\nsara_brother_picked=apples_picked_sara*brother_picked\nprint(sara_brother_picked)\n" + ], + "Output Answer": [ + "405" + ], + "split": "test" + }, + { + "Input": "There were 39.0 students trying out for the schools basketball team. If only 4.0 boys and 26.0 girls got called back, how many students didn't make the cut.", + "Output Program": [ + "total_student=39\nboys=4\ngirls=26\ntotal=30\ncut_student=total_student-total\nprint(cut_student)\n" + ], + "Output Answer": [ + "9" + ], + "split": "test" + }, + { + "Input": "Sarah had some trucks. She got 13.0 from Jeff, and now she has 38.0 trucks left. How many trucks did Sarah have to start with.", + "Output Program": [ + "trucks_left=38\ngot_form_jeff=13\nsarah_start_with=trucks_left-got_form_jeff\nprint(sarah_start_with)\n" + ], + "Output Answer": [ + "25" + ], + "split": "test" + }, + { + "Input": "Sandy grew 51 pumpkins. Mike grew 23 pumpkins. How many pumpkins did they grow in total ?", + "Output Program": [ + "sandy_grew=51\nmike_grew=23\ntotal_pumpkins=sandy_grew+mike_grew\nprint(total_pumpkins)\n" + ], + "Output Answer": [ + "74" + ], + "split": "test" + }, + { + "Input": "Joe had 50.0 toy cars. If he gives away 12.0 cars, how many cars will he have remaining.", + "Output Program": [ + "toy_cars=50\ngives_away=12\nremaning_toys=toy_cars-gives_away\nprint(remaning_toys)\n" + ], + "Output Answer": [ + "38" + ], + "split": "test" + }, + { + "Input": "There were 13.0 soccer games this year, but Alyssa missed to go to 11.0 of them. She plans to go to 15.0 games next year . How many soccer games will Alyssa go to.", + "Output Program": [ + "soccer_games_this_year=13\nmissed=11\ngames_next_year=15\nsoccer_games=soccer_games_this_year-missed+games_next_year\nprint(soccer_games)\n" + ], + "Output Answer": [ + "17" + ], + "split": "test" + }, + { + "Input": "Find 2 numbers whose sum is 64 and whose difference is 4. What is the larger number?", + "Output Program": [ + "smallest_number=30\nlargest_number=34\nsum=64\nsum_of_two_numbers=sum=64-smallest_number\nprint(sum_of_two_numbers)\n" + ], + "Output Answer": [ + "34" + ], + "split": "test" + }, + { + "Input": "Bobby had 26.0 pieces of candy. He ate 17.0 pieces of candy. How many pieces of candy does Bobby have left.", + "Output Program": [ + "pieces_candy=26\neat_candy_pieces=17\nbobby_have=pieces_candy-eat_candy_pieces\nprint(bobby_have)\n" + ], + "Output Answer": [ + "9" + ], + "split": "test" + }, + { + "Input": "Christopher strolled at 5.0 miles per hour for 4.0 hours. How far did Christopher stroll.", + "Output Program": [ + "miles=5\nhour=4\nchristopher_stroll=miles*hour\nprint(christopher_stroll)\n" + ], + "Output Answer": [ + "20" + ], + "split": "test" + }, + { + "Input": "Chloe was playing a trivia game. In the first round, she scored 40.0 points, and in the second round, she scored 50.0 points. In the last round, she scored 4.0 points. How many points did she have at the end of the game.", + "Output Program": [ + "first_round=40\nsecond_round=50\nlast_round=4\ntotal_points=first_round+second_round+last_round\nprint(total_points)\n" + ], + "Output Answer": [ + "94" + ], + "split": "test" + }, + { + "Input": "A 12 ounce can of cranberry juice sells for 84 cents. Give the unit cost in cents per ounce.", + "Output Program": [ + "ounce_can=12\nsells_cent=84\ncost=sells_cent/ounce_can\nprint(cost)\n" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "2 cars start at the same place and time , and travel in opposite directions. One car is traveling 15 kilometers per hour faster than the other. After 5 hours , the 2 cars are 275 km apart. Find the speed of slower car.", + "Output Program": [ + "Kilometre=115\ntime=5\nspeedtoeachcar=Kilometre+time\nprint(speedtoeachcar)" + ], + "Output Answer": [ + "20" + ], + "split": "test" + }, + { + "Input": "At the town carnival Billy rode the ferris wheel 7.0 times, but 3.0 times were free. If each ride cost 5.0 tickets, how many tickets did he use.", + "Output Program": [ + "ferris=7\ntimes=3\ncost=5\nticket_did_use=ferris*times\nprint(ticket_did_use)" + ], + "Output Answer": [ + "20" + ], + "split": "test" + }, + { + "Input": "Paco had 93.0 cookies. Paco ate 15.0 of them. How many cookies did Paco have left.", + "Output Program": [ + "paco_had=93\neat=15\nreamaning_cookies=paco_had-eat\nprint(reamaning_cookies)\n" + ], + "Output Answer": [ + "78" + ], + "split": "test" + }, + { + "Input": "Vince's bus ride to school is 0.625 of a mile, and Zachary's bus ride is 0.5 of a mile. How long will their combined mileage be.", + "Output Program": [ + "vince_ride=0.625\nzachary_bus_ride=0.5\ntotal_mileage=vince_ride+zachary_bus_ride\nprint(total_mileage)\n" + ], + "Output Answer": [ + "1.125" + ], + "split": "test" + }, + { + "Input": "Tommy has 60.0 balloons. His mom gave him 34.0 balloons for his birthday. How many balloons does Tommy have now.", + "Output Program": [ + "balloons=60\nmom_gave=34\ntommy_total_balloons=balloons+mom_gave\nprint(tommy_total_balloons)\n" + ], + "Output Answer": [ + "94" + ], + "split": "test" + }, + { + "Input": "Mrs. Hilt has 40 markers. They are divided equally into 7 packages. Mrs. Hilt wants to know how many markers are in each package?", + "Output Program": [ + "marker=40\npackages=7\nmarkers_in_each_package=marker/packages\nprint(markers_in_each_package)\n" + ], + "Output Answer": [ + "5" + ], + "split": "test" + }, + { + "Input": "There are 2 numbers whose sum is 65 , such that one is 4 times as large as the other. What is the larger number?", + "Output Program": [ + "Numbers=2\nSum=65\nY=5\none=4\nlarger_number=Sum/Y*one\nprint(larger_number)" + ], + "Output Answer": [ + "52" + ], + "split": "test" + }, + { + "Input": "Justin has 61.0 paper plates for a birthday party. He broke 7.0 red plates already and received 26.0 blue plates from john. How many plates will Justin have altogether.", + "Output Program": [ + "paper_plates=61\nbroke_plates=7\nreceived=26\ntotal_plates=paper_plates+received-broke_plates\nprint(total_plates)\n" + ], + "Output Answer": [ + "80" + ], + "split": "test" + }, + { + "Input": "Kate baked 18.0 cupcakes for her school's bake sale. Her brother Todd baked 8.0 and gave them to Katie. How many packages could she make if she put 2.0 cupcakes in each package.", + "Output Program": [ + "cupcake=18\ntodd_baked=8\ntotal_cupcake=26\ncup_cake_each_package=2\ntotal_package=total_cupcake/cup_cake_each_package\nprint(total_package)\n" + ], + "Output Answer": [ + "13" + ], + "split": "test" + }, + { + "Input": "Pencils cost 25 cents a piece. Pens cost 80 cents a piece. Susan spent 20 dollars for a total of 36 pens and pencils. How many pencils did she buy?", + "Output Program": [ + "pens_cost=80\nPencils_cost=25\nspent=20\ntotal=36\nbuy_pencil=total-spent\nprint(buy_pencil)" + ], + "Output Answer": [ + "16" + ], + "split": "test" + }, + { + "Input": "For Halloween, Faye scored 47.0 pieces of candy. Her sister gave her 40.0 more pieces. Then she went out and scored 25.0 more pieces. How many pieces of candy does Faye have now.", + "Output Program": [ + "faye=47\nsister_give=40\nmore=25\ntotal_pieces=faye+sister_give+more\nprint(total_pieces)\n" + ], + "Output Answer": [ + "112" + ], + "split": "test" + }, + { + "Input": "Haley has 63.0 magazines in her cabinet. She plans to send it to the recycling office in their area. If she places it in boxes which can contain 9.0 magazines, how many boxes will Hayley use.", + "Output Program": [ + "magazines=63\ninbox_magazines=9\ntotal_used_box=magazines/inbox_magazines\nprint(total_used_box)" + ], + "Output Answer": [ + "7" + ], + "split": "test" + }, + { + "Input": "Eve ran 0.7 of a mile and walked 0.6 of a mile. How much farther did Eve run than walk?", + "Output Program": [ + "run=0.7\nwalked=0.6\neve_run_than_walk=run-walked\nprint(eve_run_than_walk)" + ], + "Output Answer": [ + "0.1" + ], + "split": "test" + }, + { + "Input": "Jovana had 5.0 pounds of shells in her bucket. She added 28.0 pounds of shells. How many pounds does she have.", + "Output Program": [ + "in_bucket=5\nadded=28\ntotal_pound=in_bucket+added\nprint(total_pound)\n" + ], + "Output Answer": [ + "33" + ], + "split": "test" + }, + { + "Input": "Mike had 33.0 quarters and 87.0 nickels in his bank . His dad gave Mike 75.0 nickels. How many nickels does he have now .", + "Output Program": [ + "nikels=87\ndad_gave=75\ntotal_nikels=nikels+dad_gave\nprint(total_nikels)\n" + ], + "Output Answer": [ + "162" + ], + "split": "test" + } + ], + "Metadata": [] +} \ No newline at end of file