Question: Which landform is distinct from the Cuba diplomatically involved with Venezuela?
Choices:
Isle of Wight
Trinidad
Great Britain
Cuba
Jamaica
Tasmania
Cyprus
Hokkaidō
Puerto Rico
Hawaii
Program:
function: Find
inputs: Venezuela
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Cuba
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: landform
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" . ?e <different_from> ?e_1 . ?e_1 <pred:name> "Cuba" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Venezuela" .   }
Answer: Cuba