Question: Which area is larger, Fredericksburg or Richmond (the one that is the headquarter location of University of Richmond)?
Choices:
Danville
Roanoke
Hampton
Suffolk
Richmond
Fairfax
Fredericksburg
Williamsburg
Charlottesville
Winchester
Program:
function: Find
inputs: Fredericksburg
function: Find
inputs: University of Richmond
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Richmond
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fredericksburg" .  } UNION { ?e <pred:name> "Richmond" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "University of Richmond" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Richmond