Question: Which area is smaller, Erie County (the one that has the captital Erie) or Luzerne County?
Choices:
Luzerne County
Erie County
Lehigh County
Fayette County
Cumberland County
York County
Warren County
Franklin County
Bucks County
Allegheny County
Program:
function: Find
inputs: Erie
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Erie County
function: And
dependencies: 1
2
function: Find
inputs: Luzerne County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Erie County" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Erie" .   } UNION { ?e <pred:name> "Luzerne County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Luzerne County