query-c0d933bedd6139b97e0e1fc2ab450e18
Itemsfirst-level administrative division (Q10864048)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?propLabel (COUNT(*) AS ?numOccurs) (GROUP_CONCAT(?sLabel;SEPARATOR=" | ") AS ?occurrences)
WHERE {
VALUES ?level {
wd:Q10864048
}
?prop wikibase:directClaim ?wdt .
?s ?wdt ?level.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?prop rdfs:label ?propLabel .
?s rdfs:label ?sLabel .
}
}
GROUP BY ?propLabel
ORDER BY DESC(?numOccurs)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?level")
v8("?numOccurs")
v8("?occurrences")
v3("?prop")
v6("?propLabel"):::projected
v5("?s")
v7("?sLabel"):::projected
v4("?wdt")
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?level/]
bind0-->v2
bind00(["wd:Q10864048"])
bind00 --> bind0
v3 --"wikibase:directClaim"--> v4
v5 -->v4--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
v3 --"rdfs:label"--> v6
v5 --"rdfs:label"--> v7
end
bind3[/"count(*)"/]
bind3 --as--o v8
bind4[/"?sLabel"/]
v7 --o bind4
bind4 --as--o v8