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