query-fda24b920bfa26b61824404461f6a1f5

rq turtle/ttl

title: Iceland mountains with no CEB label SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P17 wd:Q189. hint:Prior hint:runFirst true. ?item p:P31/ps:P31/wdt:P279* wd:Q8502. FILTER NOT EXISTS {?item rdfs:label ?itemLabelCEB . filter(lang(?itemLabel)="ceb")} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } }

Use at

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Iceland mountains with no CEB label
SELECT DISTINCT ?item ?itemLabel WHERE {
  ?item wdt:P17 wd:Q189. 
  ?item p:P31/ps:P31/wdt:P279* wd:Q8502.
  FILTER NOT EXISTS {?item rdfs:label ?itemLabelCEB . filter(lang(?itemLabel)="ceb")}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemLabel"):::projected v3("?itemLabelCEB") a1((" ")) a2((" ")) c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q189"]):::iri c8(["wd:Q8502"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?itemLabel = 'ceb'"]] e0f0 --> e0v1 e0v2 --"rdfs:label"--> e0v3 e0v2("?item"):::projected e0v1("?itemLabel"):::projected e0v3("?itemLabelCEB"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f0 --> v3 f1[["?itemLabel = 'ceb'"]] f1 --> v1 v2 --"rdfs:label"--> v3 v2 --"p:direct/P17"--> c4 v2 --"p:P31"--> a1 a1 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end