(S (S (NP (BASENP (DT The) (NN population)) (PP (IN of) (BASENP (DT the) (NN canton)))) (VP (VBD was) (NP (NP (BASENP (NN 15,471)) (PP (IN as) (PP (IN of) (BASENP (NN 2007))))) (COMMA ,) (SBAR (WHPP (IN of) (WHNP (WDT which))) (S (NP (NN 1,510) (PRN (LRB -LRB-) (NP (CC or) (BASENP (NN 9.76) (NN %))) (RRB -RRB-))) (VP (VBD were) (BASENP (NNS foreigners)))))))) (PERIOD .))