(S (S (BASENP (DT The) (NN treaty)) (VP (VBZ requires) (S (BASENP (DT all) (NNS countries)) (VP (VP (VBG adopting) (BASENP (PRP it))) (S (VP (TO to) (VP (VP (VP (VB ban) (PRN (COMMA ,) (PP (TO to) (NP (BASENP (DT the) (NN extent)) (VP (VBN allowed) (PP (IN by) (BASENP (PRPD their) (NNS constitutions)))))) (COMMA ,))) (NP (DT all) (NP (NN tobacco) (NP (NP (BASENP (NN advertising)) (COMMA ,) (BASENP (NN promotion))) (CC and) (BASENP (NN sponsorship)))))) (PP (IN within) (BASENP (NN five) (NNS years)))))))))) (PERIOD .))