WeWork, once one of the world’s most valuable startups worth $47 billion, said excess supply of commercial real estate, greater competition for flexible space and uncertain economic conditions resulted in losses in the second quarter. The company’s stock is down more than 95% since its public listing, with an estimated market capitalization now around $450 million.