https://leetcode.com/problems/friend-requests-ii-who-has-the-most-friends/description/
친구 수가 가장 많은 사람 출력
requester_id = acepter_id이면 친구
WITH CTE AS(
SELECT requester_id
FROM RequestAccepted
UNION all
SELECT accepter_id
FROM RequestAccepted
)
SELECT requester_id AS id, count(*) AS num
FROM CTE
GROUP BY requester_id
ORDER BY num desc
limit 1