query-4da7b017763079f0502b5c7e9afb5dc0
TODO
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:Q218 .
?person rdfs:label ?enlabel . FILTER(LANG(?enlabel)='en')
FILTER NOT EXISTS { ?person rdfs:label ?ptlabel . FILTER(LANG(?ptlabel)='pt') }
}
ORDER BY ?enlabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?enlabel"):::projected
v3("?person"):::projected
v2("?ptlabel")
c7(["wd:Q218"]):::iri
c5(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?ptlabel = 'pt'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?person"):::projected
e0v1("?ptlabel"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?ptlabel = 'pt'"]]
f1 --> v2
v3 --"rdfs:label"--> v2
f2[["?enlabel = 'en'"]]
f2 --> v1
v3 --"wdt:P31"--> c5
v3 --"wdt:P27"--> c7
v3 --"rdfs:label"--> v1