Question: Which sovereign state is Costa Rica's country?
Choices:
Weimar Republic
San Marino
Kiribati
Switzerland
French Third Republic
West Germany
Kenya
Costa Rica
Kingdom of the Netherlands
Saint Lucia
Program:
function: Find
inputs: Costa Rica
function: Relate
dependencies: 0
inputs: country
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 <country> ?e . ?e_1 <pred:name> "Costa Rica" .   }
Answer: Costa Rica