Question: Which has more population, Kansas City whose area is 332.492944 square kilometres or Newburgh?
Choices:
Compton
Boulder
Lansing
New Haven
Waukegan
Greenville
Oakland
Kansas City
Columbus
Newburgh
Program:
function: Find
inputs: Kansas City
function: FilterNum
dependencies: 0
inputs: area
332.492944 square kilometre
=
function: Find
inputs: Newburgh
function: SelectBetween
dependencies: 1
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas City" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "332.492944"^^xsd:double . } UNION { ?e <pred:name> "Newburgh" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kansas City