query-1c35ec0f27da49fca80af04f25095a81
Missing name in native language
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#>
SELECT ?item ?itemLabel ?countryLabel WHERE {
?item wdt:P106 wd:Q13141064; wdt:P27 ?country .
FILTER EXISTS { ?item wdt:P27 ?dummy0 }
FILTER EXISTS { ?item wdt:P106 wd:Q13141064 }
FILTER NOT EXISTS { ?item wdt:P1559 ?dummy0 }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
ORDER BY ?countryLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?country")
v1("?countryLabel"):::projected
v3("?dummy0")
v2("?item"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c3(["wd:Q13141064"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1559"--> e0v2
e0v2("?dummy0"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P1559"--> v3
f1[[" "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P106"--> e1c2
e1v1("?item"):::projected
e1c2(["wd:Q13141064"]):::iri
end
f1--EXISTS--> f1e1
f1 --> v2
f1 --> c2
f1 --> c3
v2 --"wdt:P106"--> c3
f2[[" "]]
subgraph f2e2["Exists Clause"]
e2v1 --"wdt:P27"--> e2v2
e2v2("?dummy0"):::projected
e2v1("?item"):::projected
end
f2--EXISTS--> f2e2
f2 --> v2
f2 --> c4
f2 --> v3
v2 --"wdt:P27"--> v3
v2 --"wdt:P106"--> c3
v2 --"wdt:P27"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end