Question: Does Naples, where Donna Summer died, or Traverse City occupy a larger area?
Choices:
New Haven
Naples
Franklin
Traverse City
Boulder
Lansing
Compton
Columbus
Waukegan
Greenville
Program:
function: Find
inputs: Donna Summer
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Find
inputs: Traverse City
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Naples" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Donna Summer" .   } UNION { ?e <pred:name> "Traverse City" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Naples