Question: Which one is larger,  Quebec (the one that is different from Quebec City) or New Brunswick (the one whose population is 760868) ?
Choices: Alberta
British Columbia
Ontario
Quebec
Manitoba
Prince Edward Island
New Brunswick
Nova Scotia
Saskatchewan
Newfoundland and Labrador
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quebec" . ?e <different_from> ?e_1 . ?e_1 <pred:name> "Quebec City" . } UNION { ?e <pred:name> "New Brunswick" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "760868"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Quebec City
function: Relate
dependencies: 0
inputs: different from
backward
function: Find
inputs: Quebec
function: And
dependencies: 1
2
function: Find
inputs: New Brunswick
function: FilterNum
dependencies: 4
inputs: population
760868
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
Answer: Quebec