Question: What state has a diplomatic relation with People's Republic of China (the subject of this statement is Antigua and Barbuda–China relations) ?
Choices:
Tajikistan
Grenada
Saint Vincent and the Grenadines
Bulgaria
Antigua and Barbuda
Lithuania
Greece
Kazakhstan
Gabon
Finland
Program:
function: Find
inputs: People's Republic of China
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Antigua and Barbuda–China relations
function: FilterConcept
dependencies: 2
inputs: state
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "People's Republic of China" .  [ <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–China relations" .  }
Answer: Antigua and Barbuda