tokens: If it does not work for you then can create a sqlfiddle with dummy data for more clairty so that I can modify query as per your requirement .
ner_tags: O O O O O O O O O O O B-Application O O O O O O O O O O O O O O O O O