Question: Tell me the one with the bigger area, Logan (which has a population of over 1757) or Clearwater.
Choices:
Lansing
Boulder
Franklin
Columbus
Oakland
Logan
New Haven
Waukegan
Compton
Clearwater
Program:
function: Find
inputs: Logan
function: FilterNum
dependencies: 0
inputs: population
1757
=
function: Find
inputs: Clearwater
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Logan" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1757"^^xsd:double . } UNION { ?e <pred:name> "Clearwater" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Clearwater