Question: Is the smaller area occupied by Clinton County, an administrative division of Iowa, or Cass County, an administrative division of Missouri?
Choices:
Greene County
San Juan County
Kent County
African Union
Delaware County
Cass County
United States Virgin Islands
Washoe County
Orange County
Clinton County
Program:
function: Find
inputs: Iowa
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Clinton County
function: And
dependencies: 1
2
function: Find
inputs: Missouri
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: Find
inputs: Cass County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Clinton County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Iowa" .   } UNION { ?e <pred:name> "Cass County" . ?e_2 <contains_administrative_territorial_entity> ?e . ?e_2 <pred:name> "Missouri" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cass County