Question: Is Prince Edward Island or Alberta smaller, in terms of area?
Choices:
Prince Edward Island
Ontario
Newfoundland and Labrador
Nova Scotia
British Columbia
Saskatchewan
New Brunswick
Manitoba
Quebec
Alberta
Program:
function: Find
inputs: Prince Edward Island
function: Find
inputs: Alberta
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Prince Edward Island" .  } UNION { ?e <pred:name> "Alberta" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Prince Edward Island