<
Size: a a a
<
BE
г
BE
BE
г
<
BE
PZ
<
<
BE
BE
RS
RS
BE
BE
DT
sqs = Features.objects.filter(name_company__company_id=OuterRef('pk')).count()
company = Company.objects.filter(companynames__features__region=check, status__isnull=True) \
.annotate(test=Subquery(sqs))