Complex sentence: All eight are based at CFB Esquimalt in British Columbia, and replaced the YAG 300 class, and primarily operate as training platforms and surveillance craft.
Split into simpler sentences: All eight are based at CFB Esquimalt in British Columbia. They replaced the YAG 300 class and primarily operate as training platforms and surveillance craft.