Question: Which area is smaller, Iowa or Arizona (the one that is headed by Member of Congress)?
Choices:
Arizona
New Jersey
Illinois
Iowa
Colorado
Kansas
California
Hawaii
Florida
New Mexico
Program:
function: Find
inputs: Iowa
function: Find
inputs: Member of Congress
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Arizona
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iowa" .  } UNION { ?e <pred:name> "Arizona" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "Member of Congress" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Iowa