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