Question: Does Monroe County that borders Collier County or Duval County have less area?
Choices:
Putnam County
Duval County
Hillsborough County
Indian River County
Alachua County
Polk County
Citrus County
Broward County
Monroe County
Marion County
Program:
function: Find
inputs: Collier County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Monroe County
function: And
dependencies: 1
2
function: Find
inputs: Duval County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monroe County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Collier County" .   } UNION { ?e <pred:name> "Duval County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Duval County