What is {military branch} of {Sigmund Jähn} that is {end time} is {1965-0-0} ?
On what military branch Sigmund Jähn served until 1965?
SELECT ?obj WHERE { wd:Q57229 p:P241 ?s . ?s ps:P241 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1965')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57229> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P241> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1965-0-0>
} 

Sigmund Jahn served in what military branch until 1965?