Question: Which area is smaller, Compton or Davis (the one that is headed by councillor)?
Choices:
Waukegan
Franklin
Oakland
Greenville
Lansing
New Britain
New Haven
Davis
Columbus
Compton
Program:
function: Find
inputs: Compton
function: Find
inputs: councillor
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Davis
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Compton" .  } UNION { ?e <pred:name> "Davis" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "councillor" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Davis