Question: Which area is larger, Long Beach (the one that is the headquarter location of California State University) or Ogden?
Choices:
Lansing
Boulder
Columbus
New Haven
Greenville
Oakland
Compton
Long Beach
Waukegan
Ogden
Answer: Long Beach
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Long Beach" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "California State University" .   } UNION { ?e <pred:name> "Ogden" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: California State University
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Long Beach
function: And
dependencies: 1
2
function: Find
inputs: Ogden
function: SelectBetween
dependencies: 3
4
inputs: area
greater