(S (S (BASENP (DT A) (NN temple) (NN wall)) (VP (VBD collapsed) (COMMA ,) (S (VP (VP (VBG causing) (BASENP (NN panic))) (PP (IN among) (NP (NP (NP (BASENP (NN ten)) (PP (IN of) (BASENP (NNS thousands)))) (PP (IN of) (BASENP (VBN gathered) (JJ Hindu) (NNS worshippers)))) (SBAR (WHNP (WP who)) (S (VP (ADVP (RB then)) (VP (VBD began) (S (VP (TO to) (VP (VP (VB run) (PP (IN for) (BASENP (NN safety)))) (COMMA ,) (S (VP (VBG causing) (BASENP (DT the) (NN stampede))))))))))))))))) (PERIOD .))