Question: What sovereign state has Cyprus-Ireland diplomatic relations with Ireland (that is the country of University College Cork)?
Choices: Russia
Russian Soviet Federative Socialist Republic
Weimar Republic
Israel
Cyprus
Australia
Kiribati
Switzerland
Cambodia
Bangladesh
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Ireland" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "University College Cork" .  [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Cyprus–Ireland relations" .  }
Program:
function: Find
inputs: University College Cork
function: Relate
dependencies: 0
inputs: country
forward
function: Find
inputs: Ireland
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 4
inputs: statement is subject of
Cyprus–Ireland relations
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: What
dependencies: 6
Answer: Cyprus