Question: Is the area greater for Wheeling or Chicago (the one that is headed by mayor)?
Choices:
Columbus
Wheeling
Compton
Waukegan
Chicago
Oakland
Boulder
New Haven
Greenville
Lansing
Program:
function: Find
inputs: Wheeling
function: Find
inputs: mayor
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Chicago
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wheeling" .  } UNION { ?e <pred:name> "Chicago" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chicago