Update query-sql.markdown

added aggregation section