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