What is the {position} with the {MIN(term length of office)} whose {subclass of} is {head of state}  ?
The shortest term for head of state is?
Which head of state has the shortest term length of office?
SELECT ?c WHERE { ?c rdf:type ontology:head_of_state . ?c rdf:type ontology:position . ?c property:term_length_of_office ?y }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4164871>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2097>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P279> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q48352> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q4164871 . ?ent wdt:P2097 ?obj . ?ent wdt:P279 wd:Q48352} ORDER BY ASC(?obj)LIMIT 5 
Governor of New Hampshire Governor of Vermont President of the Federal Republic of Central America Governor of Tennessee Governor of Texas