Question: Which area is smaller, Henderson or Albany (the one that is the headquarter location of New York State Senate)?
Choices:
New Haven
Boulder
Waukegan
Lansing
Oakland
Henderson
Albany
Columbus
Franklin
Greenville
Program:
function: Find
inputs: Henderson
function: Find
inputs: New York State Senate
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Albany
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Henderson" .  } UNION { ?e <pred:name> "Albany" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "New York State Senate" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Albany