Question: What is the city is a part of the capital of North Island?
Choices:
Tokyo
Lower Hutt
Limerick
Cork
Santo Domingo
Abidjan
Kingston
Trieste
Kilkenny
Bergen
Program:
function: Find
inputs: North Island
function: Relate
dependencies: 0
inputs: capital
forward
function: FilterConcept
dependencies: 1
inputs: capital
function: Relate
dependencies: 2
inputs: part of
backward
function: FilterConcept
dependencies: 3
inputs: city
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <part_of> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "capital" . ?e_2 <capital> ?e_1 . ?e_2 <pred:name> "North Island" .   }
Answer: Lower Hutt