HARMAN interview question

how to write query in jpa