query: SELECT ?grouping (COUNT(DISTINCT ?entity) as ?count) (SAMPLE(?entity) as ?sample) WHERE { ?entity wdt:P31 ?type.
  VALUES ?type { wd:Q65600637 wd:Q15078732 } 
    MINUS { ?entity wdt:P576 [] }. ?entity wdt:P31 ?grouping .} GROUP BY ?grouping HAVING (?count >= 6) ORDER BY DESC(?count) LIMIT 1000