Question: Which area is smaller, East Java or St. Louis County (the one that shares border with St. Charles County?
Choices:
Lee County
St. Louis County
Kent County
Cass County
Washoe County
Greene County
East Java
San Juan County
Delaware County
African Union
Program:
function: Find
inputs: East Java
function: Find
inputs: St. Charles County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: St. Louis County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "East Java" .  } UNION { ?e <pred:name> "St. Louis County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "St. Charles County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: St. Louis County