what is the {end time} for {Robert Ballard} has {military branch} as {United States Army} ?
On what date did Robert Ballard end his service in the United States Army?
When did Robert Ballard end his service in the United States Army?
SELECT ?y WHERE { ?c property:military_branch resource:United_States_Army . resource:Robert_Ballard property:military_branch ?c . ?c property:end_time ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312867> .
?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> <http://wikidata.dbpedia.org/resource/Q9212> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q312867 p:P241 ?s . ?s ps:P241 wd:Q9212 . ?s pq:P582 ?value}