query-e20877e4ecacb5bea46b7d71ce2c68e2
function returns the language of a monolingual string, and here we only select those labels that are in English. The full query is: LANGThe
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 ?human ?label
WHERE
{
?human wdt:P31 wd:Q15632617;
rdfs:label ?label.
FILTER(LANG(?label) = "en").
FILTER(STRSTARTS(?label, "Mr. ")).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?human"):::projected
v1("?label"):::projected
c4(["wd:Q15632617"]):::iri
f0[["starts-with(?label,'Mr. ')"]]
f0 --> v1
f1[["?label = 'en'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"rdfs:label"--> v1