Question: Which has less population, Carlsbad or Sedgwick County's capital Wichita?
Choices:
Carlsbad
Franklin
Boulder
Greenville
Compton
New Haven
Lansing
Waukegan
Wichita
Oakland
Program:
function: Find
inputs: Carlsbad
function: Find
inputs: Sedgwick County
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Wichita
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carlsbad" .  } UNION { ?e <pred:name> "Wichita" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Sedgwick County" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carlsbad