(S (S (NP (BASENP (DT The) (NN group)) (PRN (COMMA ,) (SBAR (WHNP (WDT which)) (S (VP (PP (VBG according) (PP (TO to) (BASENP (NNP MAP)))) (VP (VBD had) (NP (BASENP (NNS links)) (PP (IN with) (NP (BASENP (JJ similar) (NNS organizations)) (PP (IN in) (NP (NP (NP (NP (BASENP (NNP Algeria)) (COMMA ,) (BASENP (NNP Mauritania))) (COMMA ,) (BASENP (NNP France))) (COMMA ,) (BASENP (NNP Spain))) (CONJP (COMMA ,) (CC and)) (NP (BASENP (NNS countries)) (PP (IN in) (BASENP (DT the) (NNP Middle) (NNP East))))))))))))) (COMMA ,))) (VP (VBD had) (VP (VBN plotted) (S (VP (TO to) (VP (VB attack) (NP (NP (BASENP (JJ tourist) (NNS locations)) (PP (IN in) (BASENP (NNP Agadir)))) (CONJP (ADVP (RB as) (RB well)) (IN as)) (NP (BASENP (DT a) (JJ military) (NNS barracks)) (PP (IN in) (NP (BASENP (NNP Laayoune)) (COMMA ,) (NP (BASENP (DT the) (JJ principal) (NN city)) (PP (IN in) (BASENP (DT the) (NNP Western) (NNP Sahara) (NN region)))))))))))))) (PERIOD .))