HARMAN Interview Question

how to write query in jpa