Question: Of Canada provinces that are apart from the Northwest Territories, which occupies the least area?
Choices:
British Columbia
Ontario
Manitoba
New Brunswick
Nova Scotia
Newfoundland and Labrador
Prince Edward Island
Saskatchewan
Alberta
Quebec
Program:
function: Find
inputs: Northwest Territories
function: Relate
dependencies: 0
inputs: separated from
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 <separated_from> ?e_1 . ?e_1 <pred:name> "Northwest Territories" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Saskatchewan