Here’s some food for thought.

Americans who own homes that are closer to a Trader Joe’s grocery store — as opposed to a Whole Foods or ALDI grocery store — saw higher home price appreciation, according to data from released this week from real estate analytics firm ATTOM Data Solutions. The study looked at 1,275 zip codes nationwide with a least one Whole Foods store, one Trader Joe’s store and one ALDI store.

Indeed, homeowners nearest to a Trader Joe’s have seen an average 5-year home price appreciation of 67%, compared to 52% appreciation for homeowners near a Whole Foods and 51% near an ALDI. Average appreciation for all zip codes with these grocery stores nationwide is 54%.

Plus, homeowners near a Trader Joe’s also have added equity, owning an average 36% equity in their homes ($232,439), compared to homeowners near Whole Foods, who had an average of 31% equity ($187,925) and homeowners near ALDI, who had an average 18% equity ($46,352). The average equity for all zip codes with these grocery stores nationwide is 24%.

While it’s not clear why exactly homeowners near a Trader Joe’s are coming out ahead here, it could be that, while Whole Foods tends to put its stores in more established, affluent neighborhoods, Trader Joes might pick trendier, a little-less-established ones, says Eric Zollinger, the director of sales for Manhattan development 196 Orchard, which is being sold by real estate firm Douglas Elliman and has an Equinox in the building. He notes that while established affluent neighborhoods have seen plenty of home price growth, those that are up-and-coming and super trendy sometimes see even faster home price appreciation.

If you’re an investor hoping to flip your home — meaning that you will buy and and sell it within a year — however, the calculations may be different. “Properties near an ALDI are an investor’s golden goose with an average gross flipping ROI of 69%, compared to properties near a Whole Foods which had an average gross flipping ROI of 41% and Trader Joe’s at 36%,” the report revealed. “The average gross flipping ROI for all zip codes with these grocery stores nationwide is 57 percent.”

Plus, properties near an ALDI had an average gross rental yield of 10%, compared to properties near a Whole Foods with an average gross rental yield of 6% and Trader Joe’s at 5%. The average flipping ROI for all zip codes with these grocery stores nationwide is 8 percent.