query-727daa929d7032dca94ebb23e43af9b0
LabelsEvery person with Bangladeshi citizenship with a label in English language but not in Bangla.
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#>
SELECT ?person ?enlabel {
?person wdt:P31 wd:Q5 .
?person wdt:P27 wd:Q902 .
?person rdfs:label ?enlabel . FILTER(LANG(?enlabel)='en')
FILTER NOT EXISTS { ?person rdfs:label ?bnlabel . FILTER(LANG(?bnlabel)='bn') }
}
ORDER BY ?enlabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?bnlabel")
v1("?enlabel"):::projected
v3("?person"):::projected
c5(["wd:Q5"]):::iri
c7(["wd:Q902"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?bnlabel = 'bn'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v1("?bnlabel"):::projected
e0v2("?person"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?bnlabel = 'bn'"]]
f1 --> v2
v3 --"rdfs:label"--> v2
f2[["?enlabel = 'en'"]]
f2 --> v1
v3 --"wdt:P31"--> c5
v3 --"wdt:P27"--> c7
v3 --"rdfs:label"--> v1