What is the {country} for {head of government} of {Moon Jae-in}
What country does Moon Jae-in lead?
Moon Jae-in is the leader of what country?
SELECT DISTINCT ?c WHERE { ?c property:head_of_government resource:Moon_Jae-in . ?c rdf:type ontology:country }
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/Q21001> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6256> } 
 select distinct ?sbj where { ?sbj wdt:P6 wd:Q21001 . ?sbj wdt:P31 wd:Q6256 } 