Question: Which city has fewer people, Inverness or Tokyo (the one that is the headquarter location of Enix)?
Choices:
Cork
Bergen
Tokyo
Trieste
Abidjan
Dundee
Chihuahua
Kilkenny
Inverness
Santo Domingo
Program:
function: Find
inputs: Inverness
function: Find
inputs: Enix
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Tokyo
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Inverness" .  } UNION { ?e <pred:name> "Tokyo" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Enix" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Inverness