query-577e32f001c8a15cd588e589482a40e8
Use of compound given name items
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#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?label ?givennameLabel WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618; wdt:P735 ?givenname .
?givenname wdt:P31 wd:Q1243157; rdfs:label ?givennameLabel .
FILTER(LANG(?givennameLabel) = 'en') .
?item rdfs:label ?label .
FILTER(LANG(?label) = 'en') .
FILTER(CONTAINS(STR(?label), '-') = false) .
FILTER(CONTAINS(STR(?givennameLabel), '-') = false) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?givenname")
v1("?givennameLabel"):::projected
v3("?item"):::projected
v2("?label"):::projected
a1((" "))
a2((" "))
c10(["wd:Q1243157"]):::iri
c7(["wd:Q26270618"]):::iri
f0[["contains(str(?givennameLabel),'-') = 'false^^xsd:boolean'"]]
f0 --> v1
f1[["contains(str(?label),'-') = 'false^^xsd:boolean'"]]
f1 --> v2
f2[["?label = 'en'"]]
f2 --> v2
f3[["?givennameLabel = 'en'"]]
f3 --> v1
v3 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c7
v3 --"p:direct/P735"--> v4
v4 --"p:direct/P31"--> c10
v4 --"rdfs:label"--> v1
v3 --"rdfs:label"--> v2