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