Using custom SQL for your own report

Hi!

Is it possible to use my own custom SQL query to feed the data to ViewDataTable?

I have used the ./console generate:report to generate a report class for my plugin. Now I need to manipulate the data query.

Thank you
Olle