Question: Which has less area, New Brunswick that is located in the Atlantic Time Zone or Alberta?
Choices:
Manitoba
Prince Edward Island
Saskatchewan
Alberta
Newfoundland and Labrador
Nova Scotia
New Brunswick
Quebec
British Columbia
Ontario
Program:
function: Find
inputs: Atlantic Time Zone
function: Relate
dependencies: 0
inputs: located in time zone
backward
function: Find
inputs: New Brunswick
function: And
dependencies: 1
2
function: Find
inputs: Alberta
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Brunswick" . ?e <located_in_time_zone> ?e_1 . ?e_1 <pred:name> "Atlantic Time Zone" .   } UNION { ?e <pred:name> "Alberta" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New Brunswick