Question: Which place covers a larger area, Saskatchewan which has a short name of Sask., or Newfoundland and Labrador?
Choices:
Quebec
Ontario
Alberta
New Brunswick
British Columbia
Manitoba
Saskatchewan
Prince Edward Island
Nova Scotia
Newfoundland and Labrador
Answer: Saskatchewan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newfoundland and Labrador" . } UNION { ?e <pred:name> "Saskatchewan" . ?e <short_name> ?pv_1 . ?pv_1 <pred:value> "Sask." . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Newfoundland and Labrador
function: Find
inputs: Saskatchewan
function: FilterStr
dependencies: 1
inputs: short name
Sask.
function: SelectBetween
dependencies: 0
2
inputs: area
greater