What is {position held} of {Vittorio Emanuele III} that is {end time} is {1943-9-8} ?
Give me the position held by Vittorio Emanuele III that ended on September 8, 1943.
Which position held by Vittorio Emanuele III ended on September 8, 1943?
SELECT ?y WHERE { ?m property:position_held ?y . resource:Vittorio_Emanuele_III property:position_held ?m . ?m property:end_time ?n . FILTER ( CONTAINS ( YEAR ( ?n ) , '1943' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q150642> .
?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/P582> <1943-9-8>
} 

SELECT ?obj WHERE { wd:Q150642 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1943')) }