I daresay there are aspects of both income distribution and other factors that favor or disfavor big box stores generally. No, a Walmarts footprint probably doesn't work for San Francisco proper but that doesn't really explain the relative lack of Walmarts in the Silicon Valley sprawl compared to the East Bay.