Complex sentence: It was initially an elementary school, became a high school, and for at least the past decade it has been a middle school.
Split into simpler sentences: It was initially an elementary school but eventually became a high school. For at least the past decade it has been a middle school.