What is the {constitutional republic} for {participant of} of {Korean War}
[]
Which constitutional republic participated in the Korean War?
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:constitutional_republic . ?j property:participant_in resource:Korean_War }
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/P1344> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8663> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1520223> } 
 select distinct ?sbj where { ?sbj wdt:P1344 wd:Q8663 . ?sbj wdt:P31 wd:Q1520223 } 
United States of America