I\'m trying to convert SQL-query using subquery into Doctrine Query Builder format (I\'m writing a project with Symfony for PHP). Here\'s the original SQL-query: