query-889a22788efc5981911aba2d081d630c
List of all non recognised countries SELECT ?country ?countryLabel WHERE { ?country wdt:P31/wdt:P279 wd:Q15634554. #?country wdt:P31 wd:Q6256. MINUS{?country wdt:P31/wdt:P279 wd:Q3024240.} SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } GROUP BY ?country ?countryLabel ?country2 ?country2Label ORDER BY DESC(?count)
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#>
#List of all non recognised countries
SELECT ?country ?countryLabel
WHERE {
?country wdt:P31/wdt:P279* wd:Q15634554.
#?country wdt:P31 wd:Q6256.
MINUS{?country wdt:P31/wdt:P279* wd:Q3024240.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?country ?countryLabel ?country2 ?country2Label
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?count")
v2("?country"):::projected
a1((" "))
a2((" "))
c4(["wd:Q3024240"]):::iri
c3(["wd:Q15634554"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end