Question: Which area is larger, Eugene (the one whose postal code is 97440) or Columbia (the one whose postal code is 65201)?
Choices:
Oakland
Waukegan
Columbus
Greenville
Columbia
Compton
Boulder
Eugene
Lansing
Franklin
Answer: Columbia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eugene" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "97440" . } UNION { ?e <pred:name> "Columbia" . ?e <postal_code> ?pv_2 . ?pv_2 <pred:value> "65201" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Eugene
function: FilterStr
dependencies: 0
inputs: postal code
97440
function: Find
inputs: Columbia
function: FilterStr
dependencies: 2
inputs: postal code
65201
function: SelectBetween
dependencies: 1
3
inputs: area
greater