Question: Which has a smaller area, Naples, which is an administrative division of Collier County, or Torrance?
Choices:
Oakland
Columbus
Torrance
Compton
Franklin
New Haven
Waukegan
Boulder
Naples
Lansing
Program:
function: Find
inputs: Collier County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Find
inputs: Torrance
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Naples" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Collier County" .   } UNION { ?e <pred:name> "Torrance" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Naples