Question: Which area is smaller, Sandoval County or Jefferson County (the one that has the capital Louisville)?
Choices:
Orange County
Sandoval County
Lee County
Cass County
African Union
Greene County
San Juan County
Delaware County
Jefferson County
Kent County
Program:
function: Find
inputs: Sandoval County
function: Find
inputs: Louisville
function: Relate
dependencies: 1
inputs: capital of
forward
function: Find
inputs: Jefferson County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sandoval County" .  } UNION { ?e <pred:name> "Jefferson County" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Louisville" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jefferson County