Updated GrammarTable,QTree and Query Preprocessor

Signed-off-by: pris <priscilla.ngsc@gmail.com>