query-1a9021e7ad84f75cf12fb14f02d9ce2e
Propertiesproperty constraint (P2302)item of property constraint (P2305)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
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 ?prop ?propLabel (COUNT(?value) AS ?numValues)
WHERE {
?prop p:P2302 ?qual .
?qual ps:P2302 wd:Q21510859 ;
pq:P2305 ?value .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?prop ?propLabel
ORDER BY DESC(?numValues)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?numValues")
v2("?prop"):::projected
v3("?qual")
v4("?value"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q21510859"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:P2302"--> v3
v3 --"p:statement/P2302"--> c3
v3 --"p:qualifier/P2305"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?value)"/]
v4 --o bind1
bind1 --as--o v5