Question: Tell me the one that has a smaller area, Fredericksburg or Staunton.
Choices:
Hampton
Charlottesville
Roanoke
Lynchburg
Fairfax
Fredericksburg
Danville
Winchester
Suffolk
Williamsburg
Program:
function: Find
inputs: Staunton
function: Find
inputs: Fredericksburg
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Staunton" .  } UNION { ?e <pred:name> "Fredericksburg" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fredericksburg