Question: Which area is smaller, Gary (the one whose country is United States of America) or Council Bluffs?
Choices:
Franklin
New Haven
Gary
Greenville
Council Bluffs
Waukegan
Lansing
Oakland
Compton
Columbus
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Gary
function: And
dependencies: 1
2
function: Find
inputs: Council Bluffs
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gary" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Council Bluffs" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Council Bluffs