query-55b0603e22d9a20c79c6659353280845
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?firstname_bn_label ?surname_bn_label {
?item wdt:P735 ?first_name; wdt:P734 ?surname .
?first_name rdfs:label ?firstname_bn_label FILTER( LANG( ?firstname_bn_label ) = 'bn' ) .
?surname rdfs:label ?surname_bn_label FILTER( LANG( ?surname_bn_label ) = 'bn' ) .
MINUS { ?item rdfs:label ?label FILTER( LANG( ?label ) = 'bn' ) } .
MINUS { ?item wdt:P735 ?first_name1 FILTER( ?first_name != ?first_name1 ) } .
MINUS { ?item wdt:P734 ?surname1 FILTER( ?surname != ?surname1 ) } .
} LIMIT 2500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?first_name")
v7("?first_name1")
v2("?firstname_bn_label"):::projected
v3("?item"):::projected
v6("?label")
v5("?surname")
v8("?surname1")
v1("?surname_bn_label"):::projected
f0[["?surname_bn_label = 'bn'"]]
f0 --> v1
f1[["?firstname_bn_label = 'bn'"]]
f1 --> v2
v3 --"wdt:P735"--> v4
v3 --"wdt:P734"--> v5
v4 --"rdfs:label"--> v2
v5 --"rdfs:label"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
f3[["?label = 'bn'"]]
f3 --> v6
v3 --"rdfs:label"--> v6
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
f5[["?first_name != ?first_name1"]]
f5 --> v4
f5 --> v7
v3 --"wdt:P735"--> v7
end
subgraph minus6["MINUS"]
style minus6 stroke-width:6px,fill:pink,stroke:red;
f7[["?surname != ?surname1"]]
f7 --> v5
f7 --> v8
v3 --"wdt:P734"--> v8
end