Complex sentence: She was and was elected Mayor on three occasions which included the time after the 1989 Loma Prieta earthquake which was a very trying time.
Split into simpler sentences: She was and was elected Mayor on three occasions. One term included the time after the 1989 Loma Prieta earthquake which was a very trying time.