Question: Does Beverly Hills or the mayor-run Fresno have a lower population count?
Choices:
Waukegan
Fresno
Beverly Hills
Boulder
Franklin
Oakland
Columbus
New Haven
Greenville
Lansing
Program:
function: Find
inputs: Beverly Hills
function: Find
inputs: mayor
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Fresno
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beverly Hills" .  } UNION { ?e <pred:name> "Fresno" . ?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
Answer: Beverly Hills