query-198245b9bef7bce52397b598dbb456dc

rq turtle/ttl

title:Persons born in Liepāja without a death date and with LNB ID SELECT ?item ?itemLabel ?lnb wHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P19 wd:Q167668 . MINUS { ?item wdt:P570 ?deathdate } . ?item wdt:P1368 ?lnb . SERVICE wikibase:label { bd:serviceParam wikibase:language "lv,mul,en". } }

Use at

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#>
#title:Persons born in Liepāja without a death date and with LNB ID
SELECT ?item ?itemLabel ?lnb
wHERE {
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P19 wd:Q167668 .
  MINUS { ?item wdt:P570 ?deathdate } .
  ?item wdt:P1368 ?lnb .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "lv,mul,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?deathdate") v1("?item"):::projected v3("?lnb"):::projected c4(["wd:Q167668"]):::iri c8(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c10(["lv,mul,en"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P19"--> c4 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P570"--> v2 end v1 --"wdt:P1368"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end