Question: Which one is smaller in area, Erie County (that has a headquarter location in Buffalo) or St Lawrence County?
Choices:
Niagara County
Rensselaer County
Jefferson County
Warren County
Greene County
Erie County
Cayuga County
Albany County
Orange County
St. Lawrence County
Program:
function: Find
inputs: Buffalo
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: Find
inputs: Erie County
function: And
dependencies: 1
2
function: Find
inputs: St. Lawrence County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Erie County" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Buffalo" .   } UNION { ?e <pred:name> "St. Lawrence County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Erie County