Question: Which sovereign state (which is the country of Liberal Party of the Philippines) shares a border with Indonesia?
Choices: East Timor
Palau
Russian Soviet Federative Socialist Republic
Cambodia
Kiribati
Philippines
Switzerland
Malaysia
Weimar Republic
Socialist Federal Republic of Yugoslavia
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <country> ?e . ?e_1 <pred:name> "Liberal Party of the Philippines" .  ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Indonesia" .  }
Program:
function: Find
inputs: Liberal Party of the Philippines
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Find
inputs: Indonesia
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: Philippines