Question: Which area is larger, Quincy (the one whose area is 69.683664 square kilometre) or Albany (the one whose local dialing code is 518)?
Choices:
Lansing
Albany
Oakland
Columbus
Compton
Waukegan
Greenville
Quincy
Boulder
Franklin
Answer: Quincy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quincy" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "69.683664"^^xsd:double . } UNION { ?e <pred:name> "Albany" . ?e <local_dialing_code> ?pv_2 . ?pv_2 <pred:value> "518" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Quincy
function: FilterNum
dependencies: 0
inputs: area
69.683664 square kilometre
=
function: Find
inputs: Albany
function: FilterStr
dependencies: 2
inputs: local dialing code
518
function: SelectBetween
dependencies: 1
3
inputs: area
greater