What is the {public office} for {office held by head of government} of {Lahore}
Give me the name of the leader of the government of Lahore?
Who leads the government of Lahore?
SELECT DISTINCT ?z WHERE { resource:Lahore property:office_held_by_head_of_government ?z . ?z rdf:type ontology:public_office }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11739> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1313> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q294414> } 
 select distinct ?obj where { wd:Q11739 wdt:P1313 ?obj . ?obj wdt:P31 wd:Q294414 } 
Mayor of Lahore