Get a summary table from database

Job ID: 31958745

Budget: ₹600 – ₹1,500 INR

It works on Java 8 uses maven dependencies and use Mysql databases. the task is to write a SQl query to join various tables. The controller class and all other classes are already made. You have to modify the repository so I can get a downloaded excel file with all the data basis on the filtrration which is already applied.
Concept of spring boot, spring mvc are used