query-8d0d7c2bf4392cce9a8c80f2f13c4f81
title:Distinct persons born in Pisa with LNB ID and without Latvian label SELECT DISTINCT ?item ?lnb wHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P19 wd:Q13375 . ?item wdt:P1368 ?lnb . MINUS { ?item rdfs:label ?label . FILTER(LANG(?label) = "lv") } . }
Use at
- https://query.wikidata.org/sparql
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#>
#title:Distinct persons born in Pisa with LNB ID and without Latvian label
SELECT DISTINCT ?item ?lnb
wHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P19 wd:Q13375 .
?item wdt:P1368 ?lnb .
MINUS { ?item rdfs:label ?label . FILTER(LANG(?label) = "lv") } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?label")
v2("?lnb"):::projected
c4(["wd:Q13375"]):::iri
c2(["wd:Q5"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P19"--> c4
v1 --"wdt:P1368"--> v2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?label = 'lv'"]]
f1 --> v3
v1 --"rdfs:label"--> v3
end