Question: Which area is smaller, Lynchburg or Alexandria (the one that is the twinned administrative body of Caen)?
Choices:
Williamsburg
Suffolk
Lynchburg
Charlottesville
Hampton
Falls Church
Fairfax
Winchester
Alexandria
Danville
Program:
function: Find
inputs: Lynchburg
function: Find
inputs: Caen
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Alexandria
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lynchburg" .  } UNION { ?e <pred:name> "Alexandria" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Caen" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alexandria