What is {position held} of {Moon Jae-in} and {elected in}
Moon Jae-in is what and was chosen when?
Moon Jae-in is what and was elected when?
SELECT ?g ?n WHERE { resource:Moon_Jae-in property:position_held ?h . ?h property:elected_in ?g . . ?h property:position_held ?n }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q21001> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q21001 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }