Question: Which area is larger, Norfolk (the one whose population is 246007) or Staunton?
Choices:
Hampton
Suffolk
Staunton
Charlottesville
Danville
Fairfax
Norfolk
Winchester
Roanoke
Lynchburg
Answer: Norfolk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norfolk" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "246007"^^xsd:double . } UNION { ?e <pred:name> "Staunton" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Norfolk
function: FilterNum
dependencies: 0
inputs: population
246007
=
function: Find
inputs: Staunton
function: SelectBetween
dependencies: 1
2
inputs: area
greater