Question: What sovereign state has a capital named San Salvador?
Choices:
Kiribati
Equatorial Guinea
El Salvador
West Germany
Socialist Federal Republic of Yugoslavia
Russian Soviet Federative Socialist Republic
Switzerland
Kingdom of Hungary
Ethiopia
Cambodia
Program:
function: Find
inputs: San Salvador
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "San Salvador" .   }
Answer: El Salvador