query-732432f88c46565b7bb128fb2af42457

rq turtle/ttl

Content

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
  ?property
  ?propertyLabel
  ?count
{
   {
  SELECT ?property (COUNT(*) AS ?count) {
     {
  SELECT DISTINCT ?property ?wdt {
    ?property
      a wikibase:Property;
      wdt:P31/wdt:P279* wd:Q105388954;
      wikibase:directClaim ?wdt.
  }
}
     {
  SELECT DISTINCT ?item {
    ?item wdt:P106 wd:Q5482740.
  }
  LIMIT 1234
}
    ?item ?wdt [].
  }
  GROUP BY ?property
}
  SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE]"}.
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count"):::projected v4("?item") v2("?property"):::projected v3("?wdt") a2((" ")) a1((" ")) c5(["wd:Q105388954"]):::iri c10(["bd:serviceParam"]):::iri c2(["wikibase:Property"]):::iri c12(["#91;AUTO_LANGUAGE#93;"]):::literal c8(["wd:Q5482740"]):::iri v2 --"a"--> c2 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 v2 --"wikibase:directClaim"--> v3 v4 --"wdt:P106"--> c8 v4 -->v3--> a2 bind1[/"count(*)"/] bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end