Question: What country has a diplomatic relation with Saudi Arabia?
Choices:
Mexico
Wales
South Korea
Cook Islands
Taiwan
Romania
Faroe Islands
Netherlands
Georgia
Algeria
Program:
function: Find
inputs: Saudi Arabia
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 1
inputs: country
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Saudi Arabia" .   }
Answer: Netherlands