Modify the algorithm of parse, add some functions to deal aggregate function in SQL