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