Question: Which area is larger, Fredericksburg or Norfolk (the one whose motto text is Crescas)?
Choices:
Hampton
Roanoke
Lynchburg
Charlottesville
Fredericksburg
Winchester
Fairfax
Suffolk
Norfolk
Williamsburg
Answer: Norfolk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fredericksburg" . } UNION { ?e <pred:name> "Norfolk" . ?e <motto_text> ?pv_1 . ?pv_1 <pred:value> "Crescas" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fredericksburg
function: Find
inputs: Norfolk
function: FilterStr
dependencies: 1
inputs: motto text
Crescas
function: SelectBetween
dependencies: 0
2
inputs: area
greater