Question: Is the smaller area occupied by Biloxi or by Logan, capital of Cache County?
Choices:
Columbus
Greenville
Lansing
Oakland
Waukegan
New Haven
Compton
Franklin
Boulder
Logan
Program:
function: Find
inputs: Biloxi
function: Find
inputs: Cache County
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Logan
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Biloxi" .  } UNION { ?e <pred:name> "Logan" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Cache County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Logan