(S (S (S (BASENP (NNP Joey) (NNP Logano)) (VP (VP (VBD managed) (BASENP (DT the) (JJ fourth) (NN position))) (PP (IN in) (NP (BASENP (DT the) (JJ closing) (NNS laps)) (PP (IN of) (BASENP (DT the) (NN race))))))) (COMMA ,) (SBAR (IN after) (S (VP (VP (VBG starting) (ADVP (RB twentieth))) (PP (IN on) (BASENP (DT the) (NN grid))))))) (PERIOD .))