what is the {start time} for {James K. Polk} has {position held} as {Governor of Tennessee} ?
How in what year was James K. Polk govenor of Tennesse
How in what year was James K. Polk govenor of Tennesse
SELECT ?k WHERE { resource:James_K._Polk property:position_held ?o . ?o property:position_held resource:Governor_of_Tennessee . ?o property:start_time ?k }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11891> .
?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/Q5589724> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q11891 p:P39 ?s . ?s ps:P39 wd:Q5589724 . ?s pq:P580 ?value}