<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$query = $this-&gt;createQuery();
$queryParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
    \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::class
);
debug($queryParser-&gt;convertQueryToDoctrineQueryBuilder($query)-&gt;getSQL());</pre></body></html>