Question: Which area is smaller, Chicago (the one that is the headquarter location of Midway Games) or Cupertino?
Choices:
Compton
Cupertino
Waukegan
Oakland
Greenville
Franklin
Chicago
Lansing
New Haven
Boulder
Program:
function: Find
inputs: Midway Games
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Chicago
function: And
dependencies: 1
2
function: Find
inputs: Cupertino
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chicago" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Midway Games" .   } UNION { ?e <pred:name> "Cupertino" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cupertino