query-d95ee8b5c46dd9fa76745c5a6df1e733

rq turtle/ttl

Propertiesinstance of (P31)principal investigator (P8329)occupation (P106)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?occupation ?occupationLabel (COUNT(?trial) AS ?count) ?sl WHERE {
  ?trial wdt:P31 wd:Q30612 .
  ?trial wdt:P8329 ?pi .
  ?pi wdt:P106 ?occupation .
  ?occupation wikibase:sitelinks ?sl .

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?count ?occupation ?occupationLabel ?sl
ORDER BY DESC(?count)

Query found at