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