結果 : how to write nested query in sql