Question: What island is situated in or adjacent to the Pacific Ocean and belongs to the country of Canada?
Choices:
Honshu
Kyushu
Trinidad
Tasmania
Hawaii
British Columbia
Cyprus
Vancouver Island
Maui
Canada
Program:
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 1
inputs: island
function: Find
inputs: Canada
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: island
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Pacific Ocean" .  ?e <country> ?e_2 . ?e_2 <pred:name> "Canada" .  }
Answer: Vancouver Island