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