what is the {start time} for {Qatar} has {head of government} as {Hamad bin Jassim bin Jaber Al Thani} ?
When was Hamad bin Jassim bin Jaber Al Thani appointed Prime Minister of Qatar?
In what year was Hamad bin Jassim bin Jaber Al Thani appointed Prime Minister of Qatar?
SELECT ?b WHERE { resource:Qatar property:head_of_government ?u . ?u property:head_of_government resource:Hamad_bin_Jassim_bin_Jaber_Al_Thani . ?u property:start_time ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q846> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q57734> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q846 p:P6 ?s . ?s ps:P6 wd:Q57734 . ?s pq:P580 ?value}