Question: Which one is larger, Boston or Nashville (the one that is the residence of Oprah Winfrey) ?
Choices:
Greenville
Lansing
Waukegan
Columbus
Boulder
Compton
Franklin
New Haven
Nashville
Boston
Program:
function: Find
inputs: Boston
function: Find
inputs: Oprah Winfrey
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: Nashville
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Boston" .  } UNION { ?e <pred:name> "Nashville" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Oprah Winfrey" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nashville