Question: Which area is smaller, Minnesota (the one that contains the administrative division Hennepin County) or Connecticut?
Choices:
Connecticut
Illinois
Florida
Hawaii
Iowa
New Jersey
Colorado
Minnesota
California
New Mexico
Program:
function: Find
inputs: Hennepin County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Minnesota
function: And
dependencies: 1
2
function: Find
inputs: Connecticut
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Minnesota" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Hennepin County" .   } UNION { ?e <pred:name> "Connecticut" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Connecticut