query-af9348537d7186f32f0153c0d734f7bc

rq turtle/ttl

Usage statistics]edit[

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 ?avg WHERE {
   {
  SELECT ?property (COUNT(DISTINCT ?item) AS ?count) (COUNT(DISTINCT ?statement)/COUNT(DISTINCT ?item) AS ?avg) WHERE {
    ?item wdt:P31/wdt:P279* wd:Q33506;
          ?p ?statement.
    ?property a wikibase:Property;
              wikibase:claim ?p.
  }
  GROUP BY ?property
  ORDER BY DESC(?count)
}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en-US,de". }
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?avg"):::projected v6("?count"):::projected v2("?item") v3("?p") v5("?property"):::projected v4("?statement") a1((" ")) c10(["en,en-US,de"]):::literal c3(["wd:Q33506"]):::iri c8(["bd:serviceParam"]):::iri c5(["wikibase:Property"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 -->v3--> v4 v5 --"a"--> c5 v5 --"wikibase:claim"--> v3 bind3[/"count(?item)"/] v2 --o bind3 bind3 --as--o v6 bind4[/" / "/] null --o bind4 null --o bind4 bind4 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end