What is the {human} for {head of government} of {Lviv}
What is the name of the head of government in Lviv?
Who is the person as the head of government of Lviv?
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:human . resource:Lviv property:head_of_government ?v }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q36036> . ?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> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5> } 
 select distinct ?obj where { wd:Q36036 wdt:P6 ?obj . ?obj wdt:P31 wd:Q5 } 
Andriy Sadovyi