(S (S (SBAR (WHADVP (WRB When)) (S (BASENP (DT the) (NN attack)) (VP (VBD happened)))) (COMMA ,) (S (BASENP (DT the) (NN dog)) (VP (VP (VBD ran) (ADVP (RB home))) (S (VP (TO to) (VP (VB raise) (BASENP (DT the) (NN alarm)))))))) (PERIOD .))