query-82ef6681bf320aae74c20bd17e9df183

rq turtle/ttl

TODO

Use at

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#>
SELECT  (sum(?pop) as ?population)
WHERE 
{
  ?item wdt:P463 wd:Q1065. # ?item is a member of the United Nations
  ?item wdt:P1082 ?pop.    # has a truthy population statement
  filter not exists {?item wdt:P576 [] .} # has not been dissolved
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item") v2("?pop"):::projected v3("?population") a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q1065"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P576"--> e0a1 e0v1("?item"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"wdt:P576"--> a1 v1 --"wdt:P463"--> c3 v1 --"wdt:P1082"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"sum(?pop)"/] v2 --o bind2 bind2 --as--o v3