what is the {start time} for {Graz} has {head of government} as {Franz Hasiba} ?
Franz Hasiba was elected the 2nd mayor deputy of Graz in what year?
In what year was Franz Hasiba elected the second mayor deputy of Graz?
SELECT ?t WHERE { resource:Graz property:head_of_government ?k . ?k property:head_of_government resource:Franz_Hasiba . ?k property:start_time ?t }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q13298> .
?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/Q1379391> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q13298 p:P6 ?s . ?s ps:P6 wd:Q1379391 . ?s pq:P580 ?value}