query-4bfbc7b11419d2513174b3e2d67ed6e2

rq turtle/ttl

Date of death 'unknown value' for people who can be assumed dead? in Wikipedia. I wanted to check if a WD query comes close to that number: 72 living Medal of Honor recipientsI came across the statement that there are currently

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?dob ?dod WHERE {
  ?person wdt:P31 wd:Q5.
  ?person wdt:P166 wd:Q203535.
  optional{?person wdt:P569 ?dob}
  optional{?person wdt:P570 ?dod}
  filter(!bound(?dod))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY asc(?dob)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dob"):::projected v2("?dod"):::projected v3("?person"):::projected c8(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q203535"]):::iri f0[["not bound(?dod)"]] f0 --> v2 v3 --"wdt:P31"--> c2 v3 --"wdt:P166"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P569".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P570".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end