query-13f8608a4ad951b4a4bed6178120a593

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel (COUNT(?value) AS ?count) (GROUP_CONCAT(?valueLabel; separator=", ") AS ?values) WHERE {
  ?property p:P2302 [
    ps:P2302 wd:Q21510859;
    pq:P2305 ?value
  ].
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    ?property rdfs:label ?propertyLabel.
    ?value rdfs:label ?valueLabel.
  }
}
GROUP BY ?property ?propertyLabel
ORDER BY ?count
LIMIT 50

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count") v3("?property"):::projected v4("?propertyLabel"):::projected v2("?value"):::projected v5("?valueLabel"):::projected v6("?values") a1((" ")) c6(["bd:serviceParam"]):::iri c2(["wd:Q21510859"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal a1 --"p:statement/P2302"--> c2 a1 --"p:qualifier/P2305"--> v2 v3 --"p:P2302"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 v3 --"rdfs:label"--> v4 v2 --"rdfs:label"--> v5 end bind2[/"count(?value)"/] v2 --o bind2 bind2 --as--o v6 bind3[/"?valueLabel"/] v5 --o bind3 bind3 --as--o v6