What is {position held} of {Alan Shepard} that is {start time} is {1963-11-0} ?
Alan Shepard held what position in November of 1963?
What position held Alan Shepard on November of 1963?
SELECT ?f WHERE { resource:Alan_Shepard property:position_held ?n . ?n property:start_time ?p . ?n property:position_held ?f . FILTER ( CONTAINS ( YEAR ( ?p ) , '1963' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q174979> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1963-11-0>
} 

SELECT ?obj WHERE { wd:Q174979 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1963')) }