Question: Which sovereign state has diplomatic relations with Taiwan (the subject of this statement is Honduras–Taiwan relations) while its demonym is honduregno ?
Choices:
Samoa
Honduras
South Sudan
Russian Soviet Federative Socialist Republic
Switzerland
Socialist Federal Republic of Yugoslavia
Benin
Cambodia
People's Republic of China
Weimar Republic
Program:
function: Find
inputs: Taiwan
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Honduras–Taiwan relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: FindAll
function: FilterStr
dependencies: 4
inputs: demonym
honduregno
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Taiwan" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Honduras–Taiwan relations" . ?e <demonym> ?pv . ?pv <pred:value> "honduregno" .  }
Answer: Honduras