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