Question: What state has Antigua and Barbuda–Taiwan diplomatic relations with the island nation whose inhabitants are the 臺灣人 people?
Choices: Bulgaria
Saint Vincent and the Grenadines
Grenada
Kazakhstan
Tajikistan
Finland
Cuba
Moldova
Antigua and Barbuda
Sweden
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "island nation" . ?e_1 <demonym> ?pv . ?pv <pred:value> "臺灣人" .  [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Antigua and Barbuda–Taiwan relations" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
臺灣人
function: FilterConcept
dependencies: 1
inputs: island nation
function: Relate
dependencies: 2
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 3
inputs: statement is subject of
Antigua and Barbuda–Taiwan relations
function: FilterConcept
dependencies: 4
inputs: state
function: What
dependencies: 5
Answer: Antigua and Barbuda