Question: Which area is larger, Dalian or Guadalajara (the one that is the headquarter location of Club Atlas)?
Choices:
Chihuahua
Kingston
Dalian
Trieste
Abidjan
Dundee
Santo Domingo
Bergen
Guadalajara
Cork
Program:
function: Find
inputs: Dalian
function: Find
inputs: Club Atlas
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Guadalajara
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dalian" .  } UNION { ?e <pred:name> "Guadalajara" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Club Atlas" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dalian