Question: Which province of Canada has the capital Winnipeg?
Choices:
Ontario
Manitoba
Saskatchewan
New Brunswick
Newfoundland and Labrador
British Columbia
Nova Scotia
Alberta
Quebec
Prince Edward Island
Program:
function: Find
inputs: Winnipeg
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Winnipeg" .   }
Answer: Manitoba