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