what is the {position held} for {Linz} has {head of government} as {Franz Dobusch} ?
What position in government did Franz Dobush have?
What position in government did Franz Dobush have?
SELECT ?o WHERE { resource:Linz property:head_of_government ?d . ?d property:position_held ?o . ?d property:head_of_government resource:Franz_Dobusch }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41329> .
?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/Q1446553> .
?statement <http://www.wikidata.org/entity/P39> ?value. 
} 

SELECT ?value WHERE { wd:Q41329 p:P6 ?s . ?s ps:P6 wd:Q1446553 . ?s pq:P39 ?value}