Qual é a sua dúvida?
Spring Boot Repository - Exemplos de Consultas
List<User> findTop10ByOrderByIdDesc(); // (Find - Top10 - ByOrderBy - Id - Desc)
User findFirstByOrderByRamalDesc();
User findByName(String name);
Optional<User> findByUserName(String userName);
Optional<User> findByUserNameAndEmail(String userName, String email);