what is the {start time} for {Charles VI, Holy Roman Emperor} has {position held} as {King of Hungary} ?
What year was Charles VI King of Hungary
When was Charles VI, Holy Roman Emperor, the King of Hungary?
SELECT ?p WHERE { ?g property:start_time ?p . resource:Charles_VI,_Holy_Roman_Emperor property:position_held ?g . ?g property:position_held resource:king_of_Hungary }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q150665> .
?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> <http://wikidata.dbpedia.org/resource/Q6412254> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q150665 p:P39 ?s . ?s ps:P39 wd:Q6412254 . ?s pq:P580 ?value}