Question: Is the smaller area occupied by the Hillsborough County bordering Worcester County or by Maui County?
Choices:
Kent County
Washoe County
Maui County
Orange County
Hillsborough County
Cass County
African Union
Lee County
San Juan County
Delaware County
Answer: Hillsborough County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hillsborough County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Worcester County" .   } UNION { ?e <pred:name> "Maui County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Worcester County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Hillsborough County
function: And
dependencies: 1
2
function: Find
inputs: Maui County
function: SelectBetween
dependencies: 3
4
inputs: area
less