Question: Is there a greater area in Charleston (population 51400) or in Raleigh?
Choices:
Compton
Boulder
Waukegan
Franklin
Lansing
Oakland
Columbus
Raleigh
Charleston
Greenville
Program:
function: Find
inputs: Charleston
function: FilterNum
dependencies: 0
inputs: population
51400
=
function: Find
inputs: Raleigh
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charleston" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "51400"^^xsd:double . } UNION { ?e <pred:name> "Raleigh" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Raleigh