(S (S (BASENP (DT The) (JJ following) (NN day)) (COMMA ,) (S (NP (BASENP (DT a) (NN freight) (NN train)) (PP (IN with) (BASENP (NN 40) (NNS wagons)))) (VP (VP (VBD derailed) (ADVP (RB east) (PP (IN of) (BASENP (NNP Kalgoorlie))))) (COMMA ,) (S (VP (VBG injuring) (BASENP (NN three) (NNS people))))))) (PERIOD .))