Question: What is the name of the landform where St. John is capital?
Choices:
Cyprus
Tasmania
Honshu
Hokkaidō
Trinidad
Newfoundland and Labrador
Java
Puerto Rico
Hawaii
Newfoundland
Program:
function: Find
inputs: St. John's
function: Relate
dependencies: 0
inputs: capital
backward
function: FilterConcept
dependencies: 1
inputs: landform
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" . ?e <capital> ?e_1 . ?e_1 <pred:name> "St. John's" .   }
Answer: Newfoundland