main
1SELECT COUNT(*) as total, AVG(age) as avg_age FROM users GROUP BY department HAVING COUNT(*) > 5