Question: Does Surrey (whose country is Canada) or Liverpool (that is the twinned administrative body of Dublin) have less area?
Choices:
Chihuahua
Kilkenny
Trieste
Surrey
Liverpool
Abidjan
Cork
Kingston
Dundee
Bergen
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Surrey
function: And
dependencies: 1
2
function: Find
inputs: Dublin
function: Relate
dependencies: 4
inputs: twinned administrative body
backward
function: Find
inputs: Liverpool
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Surrey" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Liverpool" . ?e <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Dublin" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Liverpool