select fu.*

  from (select distinct fu."Id"

          from (select fu."Id" as "Id"

                  from "Partner" pc 

                  left outer join "QsEintrag" pcqse on pcqse."VpNr"=pc."VpNr"

                    left outer join "FileUpload" fu on fu."Id"=pcqse."FileUploadId"

                 where pc."PartnerName" like concat('%',chr(65533),'%') and pcqse."FileUploadId" is not null) uencr

            left outer join "FileUpload" fu on fu."Id"=uencr."Id") uids

    left outer join "FileUpload" fu on fu."Id"=uids."Id"