Question: Among the provinces of Canada that replaces Northwest Territories,which one has the largest area ?
Choices:
Alberta
Manitoba
Saskatchewan
Quebec
Ontario
Prince Edward Island
Nova Scotia
New Brunswick
Newfoundland and Labrador
British Columbia
Program:
function: Find
inputs: Northwest Territories
function: Relate
dependencies: 0
inputs: replaces
backward
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: SelectAmong
dependencies: 2
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e <replaces> ?e_1 . ?e_1 <pred:name> "Northwest Territories" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ontario