query-9c6dfcae274215e185a79fb3e5c3a8b9
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT ?natLabel (COUNT(DISTINCT ?item) AS ?count) {
?item p:P69 [pq:P812 [wdt:P279* wd:Q36442]]; wdt:P27 ?nat .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?natLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?item"):::projected
v3("?nat")
a2((" "))
a1((" "))
c2(["wd:Q36442"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"p:direct/P279"--> c2
a2 --"p:qualifier/P812"--> a1
v2 --"p:P69"--> a2
v2 --"p:direct/P27"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4