query-89e5b957af8e57b815b7a3c307d6629c
another property should be used
SELECT *
{
?item wdt:P31 wd:Q3241045 .
?item wdt:P361+ wd:Q81068910 .
?item p:P1339 ?_injured_statement .
OPTIONAL { ?_injured_statement ps:P1339 ?number_injured }
}
Use at
- https://query.wikidata.org/sparql
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/>
# another property should be used
SELECT *
{
?item wdt:P31 wd:Q3241045 .
?item wdt:P361+ wd:Q81068910 .
?item p:P1339 ?_injured_statement .
OPTIONAL { ?_injured_statement ps:P1339 ?number_injured }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?_injured_statement"):::projected
v1("?item"):::projected
v3("?number_injured"):::projected
c2(["wd:Q3241045"]):::iri
c4(["wd:Q81068910"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P361"--> c4
v1 --"p:P1339"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:statement/P1339".-> v3
end