query-d2b9bc3da134624fd8a3c4826d688ce1
Notable Indian women who were killed by homicide or a subclass thereof SELECT ?Indian ?IndianLabel ?date_of_birth ?date_of_death WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?Indian wdt:P27 wd:Q668. # Matching all subclasses too (this actually gets you one more result) ?Indian p:P1196/ps:P1196/wdt:P279* wd:Q149086. ?Indian wdt:P21 wd:Q6581072. OPTIONAL { ?Indian wdt:P569 ?date_of_birth. } OPTIONAL { ?Indian wdt:P570 ?date_of_death. } } LIMIT 100
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Notable Indian women who were killed by homicide or a subclass thereof
SELECT ?Indian ?IndianLabel ?date_of_birth ?date_of_death WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?Indian wdt:P27 wd:Q668.
# Matching all subclasses too (this actually gets you one more result)
?Indian p:P1196/ps:P1196/wdt:P279* wd:Q149086.
?Indian wdt:P21 wd:Q6581072.
OPTIONAL { ?Indian wdt:P569 ?date_of_birth. }
OPTIONAL { ?Indian wdt:P570 ?date_of_death. }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?Indian"):::projected
v2("?date_of_birth"):::projected
v3("?date_of_death"):::projected
a1((" "))
a2((" "))
c10(["wd:Q149086"]):::iri
c12(["wd:Q6581072"]):::iri
c2(["bd:serviceParam"]):::iri
c6(["wd:Q668"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P27"--> c6
v1 --"p:P1196"--> a1
a1 --"p:statement/P1196"--> a2
a2 --"p:direct/P279"--> c10
v1 --"p:direct/P21"--> c12
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P569".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P570".-> v3
end