Question: Canada borders which country?
Choices:
(500) Days of Summer
Cook Islands
Scotland
Netherlands
Greenland
Prince Edward Island
Faroe Islands
Upper Normandy
Wales
United States of America
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: country
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Canada" .   }
Answer: Greenland