Report question

Question: how to write order by and limit query in jpa