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