(S (S (NP (NP (BASENP (NNP President)) (PP (IN of) (BASENP (NNP Poland)))) (BASENP (NNP Bronislaw) (NNP Komorowski))) (VP (VBZ has) (VP (VBN said) (SBAR (S (BASENP (PRP he)) (VP (VBZ has) (VP (VBN planned) (S (VP (TO to) (VP (VP (VP (VB pull) (BASENP (JJ Polish) (NNS troops))) (PP (IN out) (PP (IN of) (BASENP (NNP Afghanistan))))) (PP (IN by) (BASENP (NN 2012))))))))))))) (PERIOD .))