what is the {end time} for {Karl Dönitz} has {commander of} as {Kriegsmarine} ?
What is Karl Donitz's end time?
What { end time } has { commander of } as { Kriegsmarine } for { Karl Dönitz }?
SELECT ?b WHERE { resource:Karl_Dönitz property:commander_of_(DEPRECATED) ?a . ?a property:end_time ?b . ?a property:commander_of_(DEPRECATED) resource:German_Navy }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q76437> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P598> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q151701> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q76437 p:P598 ?s . ?s ps:P598 wd:Q151701 . ?s pq:P582 ?value}