Question: Is the larger area occupied by Lynchburg or Petersburg?
Choices:
Fairfax
Charlottesville
Williamsburg
Lynchburg
Roanoke
Winchester
Danville
Suffolk
Hampton
Petersburg
Program:
function: Find
inputs: Lynchburg
function: Find
inputs: Petersburg
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lynchburg" .  } UNION { ?e <pred:name> "Petersburg" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lynchburg