Question: Which area is smaller, Basra or Barcelona (the one that is the twinned administrative body of Boston)?
Choices:
İzmir
Gibraltar
Tianjin
Barcelona
Basra
Fremantle
Greenland
Odessa
Alexandria
Busan
Program:
function: Find
inputs: Basra
function: Find
inputs: Boston
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Barcelona
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Basra" .  } UNION { ?e <pred:name> "Barcelona" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Boston" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barcelona