(1) Added code to remove successive queries from the same user in the
same session
(2) code to generate semantic file to process later