Question: What is the connection between Prince Edward Island or Saskatchewan (the one whose area is 651900 square kilometre)?
Choices:
Nova Scotia
Newfoundland and Labrador
British Columbia
Manitoba
Alberta
Prince Edward Island
Ontario
Saskatchewan
New Brunswick
Quebec
Answer: Saskatchewan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Prince Edward Island" . } UNION { ?e <pred:name> "Saskatchewan" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "651900"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Prince Edward Island
function: Find
inputs: Saskatchewan
function: FilterNum
dependencies: 1
inputs: area
651900 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater