added group clause to the query language