Question: Does Hanoi or Lincoln, U.K. have less area?
Choices:
Abidjan
Kilkenny
Lincoln
Cork
Santo Domingo
Hanoi
Chihuahua
Trieste
Kingston
Dundee
Program:
function: Find
inputs: Hanoi
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Lincoln
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hanoi" .  } UNION { ?e <pred:name> "Lincoln" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lincoln