Question: Is the smaller area occupied by New York, location of Chautauqua County, or by Ohio?
Choices:
Iowa
Massachusetts
Hawaii
California
Illinois
Ohio
New Jersey
New Mexico
Colorado
Florida
Program:
function: Find
inputs: Chautauqua County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: New York
function: And
dependencies: 1
2
function: Find
inputs: Ohio
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New York" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Chautauqua County" .   } UNION { ?e <pred:name> "Ohio" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ohio