Question: Show me the state that has diplomatic relationships with Libya (this statement has the subject Granada Libya relations).
Choices:
Malta
Finland
Tajikistan
Lithuania
Kazakhstan
Jamaica
Grenada
Saint Vincent and the Grenadines
Kosovo
Denmark
Program:
function: Find
inputs: Libya
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Grenada–Libya 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_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Libya" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Grenada–Libya relations" .  }
Answer: Grenada