Question: Which has the smallest area among the Canadian provinces that border Saskatchewan which has a constitutional monarchy?
Choices:
British Columbia
Nova Scotia
Alberta
Ontario
Manitoba
Quebec
Saskatchewan
Newfoundland and Labrador
Prince Edward Island
New Brunswick
Program:
function: Find
inputs: constitutional monarchy
function: Relate
dependencies: 0
inputs: basic form of government
backward
function: Find
inputs: Saskatchewan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: province of Canada
function: SelectAmong
dependencies: 5
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Saskatchewan" . ?e_1 <basic_form_of_government> ?e_2 . ?e_2 <pred:name> "constitutional monarchy" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Manitoba