Question: Among Nova Scotia and Prince Edward Island which one has a greater area?
Choices:
Quebec
Nova Scotia
Prince Edward Island
Ontario
British Columbia
Newfoundland and Labrador
Alberta
Manitoba
New Brunswick
Saskatchewan
Program:
function: Find
inputs: Nova Scotia
function: Find
inputs: Prince Edward Island
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nova Scotia" .  } UNION { ?e <pred:name> "Prince Edward Island" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nova Scotia