Question: What sovereign state has a diplomatic relationship with the sovereign-state country of Hebei (the subject of this statement is China–Federated States of Micronesia relations)?
Choices: Kiribati
Cambodia
Bhutan
People's Republic of China
Federated States of Micronesia
Uruguay
Switzerland
Spain
Poland
Ghana
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Hebei" .  [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "China–Federated States of Micronesia relations" .  }
Program:
function: Find
inputs: Hebei
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 3
inputs: statement is subject of
China–Federated States of Micronesia relations
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: What
dependencies: 5
Answer: Federated States of Micronesia