Question: Which Canadian province that took the place of the Northwest Territories covers the least area?
Choices:
Newfoundland and Labrador
Ontario
New Brunswick
Alberta
Prince Edward Island
Nova Scotia
Quebec
Saskatchewan
British Columbia
Manitoba
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
smallest
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 ?v LIMIT 1
Answer: Manitoba