And he said, What's going on?
( ( And ( he said ) ) ( , ( What ( ( 's ( going on ) ) ? ) ) ) )
(ROOT (SBARQ (S (CC And) (NP (PRP he)) (VP (VBD said))) (, ,) (WHNP (WP What)) (SQ (VP (VBZ 's) (VP (VBG going) (PRT (RP on))))) (. ?)))
He wanted to know what was going on.
( He ( ( wanted ( to ( know ( what ( was ( going on ) ) ) ) ) ) . ) )
(ROOT (S (NP (PRP He)) (VP (VBD wanted) (S (VP (TO to) (VP (VB know) (SBAR (WHNP (WP what)) (S (VP (VBD was) (VP (VBG going) (PRT (RP on)))))))))) (. .)))