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