Question: Which has more area, Quito or London where The Clash was formed?
Choices:
Dundee
Cork
Chihuahua
Bergen
London
Trieste
Santo Domingo
Kingston
Kilkenny
Quito
Program:
function: Find
inputs: Quito
function: Find
inputs: The Clash
function: Relate
dependencies: 1
inputs: location of formation
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quito" .  } UNION { ?e <pred:name> "London" . ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "The Clash" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: London