It would seem a simple and trivial task. But I had to dig a little into the code and docs.
And so, to get a "clean" SQL query that will subsequently be transferred to the DB for execution, it is enough to use the following code:
echo $Query -> select('*')
-> from('{{%authitem}}') -> createCommand() -> getRawSql();
