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