query-fff2273a6b0bbd6a843c68595f24d299
Propertiesinstance of (P31)country (P17)located in the administrative territorial entity (P131)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?locationLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q33506.
?item wdt:P17 wd:Q31.
OPTIONAL { ?item wdt:P131 ?location. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,en,de". }
FILTER(NOT EXISTS {
?item rdfs:label ?name_label.
FILTER((LANG(?name_label)) = "nl")
})
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?itemLabel"):::projected
v4("?location")
v2("?name_label")
c4(["wd:Q33506"]):::iri
c9(["bd:serviceParam"]):::iri
c6(["wd:Q31"]):::iri
c11(["nl,fr,en,de"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?name_label = 'nl'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?name_label"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?name_label = 'nl'"]]
f1 --> v2
v3 --"rdfs:label"--> v2
v3 --"wdt:P31"--> c4
v3 --"wdt:P17"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end