(S (S (S (BASENP (NNP Ms) (NNP Bligh)) (VP (VP (VBD became) (BASENP (DT the) (JJ third) (JJ female) (NN premier))) (PP (IN in) (BASENP (JJ Australian) (NN history))))) (SBAR (WHADVP (WRB when)) (S (BASENP (NNP Peter) (NNP Beattie)) (VP (VBD resigned) (PP (IN in) (BASENP (NN 2007))))))) (PERIOD .))