Question: Which one has more area between Long Island (the one that is the residence of Edward Burns) and North Island?
Choices:
Trinidad
Ireland
North Island
Puerto Rico
Hawaii
Tasmania
Cyprus
Long Island
Maui
Newfoundland
Program:
function: Find
inputs: Edward Burns
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Long Island
function: And
dependencies: 1
2
function: Find
inputs: North Island
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Long Island" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Edward Burns" .   } UNION { ?e <pred:name> "North Island" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Island