query-9340b67bb451cad1751a11f568575b14
List of all non recognised countries that are marked as country 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 that are marked as country
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((" "))
c5(["wd:Q3024240"]):::iri
c3(["wd:Q15634554"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c4(["wd:Q6256"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P31"--> c4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end