for $article in collection("3208")//article for $token1 in $article/element let $token2 := $token1/following-sibling::element[1] let $token3 := $token1/following-sibling::element[2] where $token1/data[contains(text(),"VER")] and $token2/data[1][contains(text(),"DET")] and $token3/data[1]="NOM" return string-join(($token1/data[3], $token2/data[3], $token3/data[3]), " " )