query-7df3bd4388669dac28b07073ae1db11b

rq turtle/ttl

Notable Indian women whose manner of death (P1196) was homicide (Q149086) or a subclass of it SELECT ?India ?IndiaLabel ?date_of_birth ?date_of_death WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?India wdt:P27 wd:Q668. ?India p:P1196/ps:P1196/wdt:P279* wd:Q149086. ?India wdt:P21 wd:Q6581072. OPTIONAL { ?India wdt:P569 ?date_of_birth. } OPTIONAL { ?India wdt:P570 ?date_of_death. } } LIMIT 100

Use at

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 whose manner of death (P1196) was homicide (Q149086) or a subclass of it
SELECT ?India ?IndiaLabel ?date_of_birth ?date_of_death WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?India wdt:P27 wd:Q668.
  ?India p:P1196/ps:P1196/wdt:P279* wd:Q149086.
  ?India wdt:P21 wd:Q6581072.
  OPTIONAL { ?India wdt:P569 ?date_of_birth. }
  OPTIONAL { ?India 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("?India"):::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