Question: Does British Columbia or Ontario (that shares a border with Michigan) have the larger area?
Choices: Prince Edward Island
Alberta
New Brunswick
Newfoundland and Labrador
Ontario
British Columbia
Nova Scotia
Quebec
Manitoba
Saskatchewan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "British Columbia" .  } UNION { ?e <pred:name> "Ontario" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Michigan" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: British Columbia
function: Find
inputs: Michigan
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Ontario
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
Answer: Ontario