Complex sentence: It has a basketball court and a volleyball court while table tennis is played in a separate part of the building.
Split into simpler sentences: It has a basketball court and a volleyball court. Table tennis is played in a separate part of the building.