query: SELECT ?grouping (COUNT(DISTINCT ?entity) as ?count) (SAMPLE(?entity) as ?sample) WHERE { ?entity ^ps:P921 [pq:P518 wd:Q59615872; ^p:P921 [wdt:P1433 wd:Q16055052;wdt:P31 wd:Q19389637] ]. ?entity wdt:P410 ?grouping .} GROUP BY ?grouping HAVING (?count >= 0) ORDER BY DESC(?count) LIMIT 1000