結果 : how to use nested aggregate functions in sql