[終「お」]わる => To finish A; A ends N4
Secondary Verb
その[結果「けっか」] => Because of A (in the past), B N3
Reason, Result, Response