query-e67b1ebb89be1281cf21197e9c2d6e41
National heroes of Indonesia and their date of death SELECT ?itemID ?labelEN ?labelID ?deathdate WHERE { ?itemID wdt:P166 wd:Q1369309 . # items with award received National Hero of Indonesia OPTIONAL { ?itemID wdt:P570 ?deathdate } # deathdate information OPTIONAL { ?itemID rdfs:label ?labelEN . # English label FILTER(LANG(?labelEN)="en") } OPTIONAL { ?itemID rdfs:label ?labelID . # Indonesian label FILTER(LANG(?labelID)="id") } }
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#>
# National heroes of Indonesia and their date of death
SELECT ?itemID ?labelEN ?labelID ?deathdate
WHERE {
?itemID wdt:P166 wd:Q1369309 . # items with award received National Hero of Indonesia
OPTIONAL { ?itemID wdt:P570 ?deathdate } # deathdate information
OPTIONAL { ?itemID rdfs:label ?labelEN . # English label
FILTER(LANG(?labelEN)="en") }
OPTIONAL { ?itemID rdfs:label ?labelID . # Indonesian label
FILTER(LANG(?labelID)="id") }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?deathdate"):::projected
v3("?itemID"):::projected
v2("?labelEN"):::projected
v1("?labelID"):::projected
c4(["wd:Q1369309"]):::iri
v3 --"wdt:P166"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P570".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end