query-1671fd5487927557ea34495cd4bf39e2
title: List of classes which are used as value constraints for the properties SELECT ?class ?classLabel (COUNT(*) AS ?count) WHERE { ?property p:P2302 ?statement. ?statement ps:P2302 wd:Q21510865; pq:P2308 ?class ; pq:P2309 [] . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?class ?classLabel ORDER BY DESC(?count)
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#>
#title: List of classes which are used as value constraints for the properties
SELECT ?class ?classLabel (COUNT(*) AS ?count) WHERE {
?property p:P2302 ?statement.
?statement ps:P2302 wd:Q21510865;
pq:P2308 ?class ;
pq:P2309 [] .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?class ?classLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?class"):::projected
v5("?count")
v2("?property")
v3("?statement")
a1((" "))
c7(["bd:serviceParam"]):::iri
c3(["wd:Q21510865"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:P2302"--> v3
v3 --"p:statement/P2302"--> c3
v3 --"p:qualifier/P2308"--> v4
v3 --"p:qualifier/P2309"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(*)"/]
bind1 --as--o v5