Question: Which area is larger, Salzburg (the one that is the headquarter location of FC Red Bull Salzburg) or Marseille?
Choices:
Stuttgart
Bordeaux
Fort Smith
Dnipro
Aachen
Halle (Saale)
Wuppertal
Salzburg
Marseille
Lyon
Program:
function: Find
inputs: FC Red Bull Salzburg
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Salzburg
function: And
dependencies: 1
2
function: Find
inputs: Marseille
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salzburg" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "FC Red Bull Salzburg" .   } UNION { ?e <pred:name> "Marseille" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Marseille