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