Complex sentence: The synagogue is closely affiliated with the Ramaz School which, shares a building with the lower school and is across the street from the middle school.
Split into simpler sentences: The synagogue is closely affiliated with the Ramaz School. It shares a building with the lower school and is across the street from the middle school.