Question: Does New Orleans (that is the residence of Anthony Mackie) or Orlando (whose country is the United States of America) have the larger area?
Choices:
New Orleans
Orlando
Greenville
Lansing
Oakland
New Haven
Compton
Franklin
Columbus
Waukegan
Program:
function: Find
inputs: Anthony Mackie
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: New Orleans
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Orlando
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Orleans" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Anthony Mackie" .   } UNION { ?e <pred:name> "Orlando" . ?e <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Orlando