implemented SELECT statement with aggregate functions: SUM(col), AVG(col), COUNT(col), and COUNT(*)