結果 : postgres get first element of group