query-6831054ab8c70f0354b8c1eecab09319
Countries by number of treaties ratified
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT ?ratifier ?ratifierLabel (COUNT(?treaty) AS ?ratified_count) WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?treaty wdt:P31/wdt:P279* wd:Q131569.
?treaty wdt:P6193 ?ratifier.
}
GROUP BY ?ratifier ?ratifierLabel
ORDER BY DESC(?ratified_count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?ratified_count")
v3("?ratifier"):::projected
v2("?treaty"):::projected
a1((" "))
c7(["wd:Q131569"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c7
v2 --"wdt:P6193"--> v3
bind1[/"count(?treaty)"/]
v2 --o bind1
bind1 --as--o v4