Question: Which area is smaller, Monroe County (the one that is located in Indiana) or Porter County?
Choices:
Allen County
Wayne County
Madison County
Hancock County
Delaware County
Lake County
Franklin County
Monroe County
Johnson County
Marion County
Program:
function: Find
inputs: Indiana
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Monroe County
function: And
dependencies: 1
2
function: Find
inputs: Porter County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monroe County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Indiana" .   } UNION { ?e <pred:name> "Porter County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Monroe County