What is the {country} for {head of government} of {Rodrigo Duterte}
Rodrigo Duterte is the head of government for which country?
Which is the country for which Rodrigo Duterte is the head of the government?
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:country . ?j property:head_of_government resource:Rodrigo_Duterte }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?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/Q457786> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6256> } 
 select distinct ?sbj where { ?sbj wdt:P6 wd:Q457786 . ?sbj wdt:P31 wd:Q6256 } 
Philippines