query-9b0931e296037a0fece3c82ef808944e
Member states of the United Nations
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?nation ?nationLabel ?joining WHERE {
?nation p:P463 ?uno . ?uno v:P463 wd:Q1065 . ?uno pq:P580 ?joining
FILTER NOT EXISTS {?uno pq:P582 ?end}
SERVICE wikibase:label{bd:serviceParam wikibase:language "de"}
}
ORDER BY ?joining ?nationLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?end")
v1("?joining"):::projected
v5("?nation"):::projected
v2("?nationLabel"):::projected
v3("?uno")
c9(["de"]):::literal
c7(["bd:serviceParam"]):::iri
c4(["wd:Q1065"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P582"--> e0v2
e0v2("?end"):::projected
e0v1("?uno"):::projected
end
f0--EXISTS--> f0e0
f0 --> v3
f0 --> c1
f0 --> v4
v3 --"p:qualifier/P582"--> v4
v5 --"p:P463"--> v3
v3 --"p:statement/P463"--> c4
v3 --"p:qualifier/P580"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end