As the Soviets began their withdrawal, the jihad's leaders debated what to do next.
( ( As ( ( the Soviets ) ( began ( their withdrawal ) ) ) ) ( , ( ( ( the ( jihad 's ) ) leaders ) ( ( debated ( what ( to ( do next ) ) ) ) . ) ) ) )
(ROOT (S (SBAR (IN As) (S (NP (DT the) (NNPS Soviets)) (VP (VBD began) (NP (PRP$ their) (NN withdrawal))))) (, ,) (NP (NP (DT the) (NN jihad) (POS 's)) (NNS leaders)) (VP (VBN debated) (SBAR (WHNP (WP what)) (S (VP (TO to) (VP (VB do) (ADVP (JJ next))))))) (. .)))
The jihads knew exactly what to do when the soviets withdrew. 
( ( The jihads ) ( ( knew ( ( exactly what ) ( to ( do ( when ( ( the soviets ) withdrew ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NNS jihads)) (VP (VBD knew) (SBAR (WHNP (RB exactly) (WP what)) (S (VP (TO to) (VP (VB do) (SBAR (WHADVP (WRB when)) (S (NP (DT the) (NNS soviets)) (VP (VBD withdrew))))))))) (. .)))