Question: Is there more area in Midland where the postal code is 79701-12 or in Newport Beach?
Choices:
Columbus
Compton
New Haven
Greenville
Boulder
Franklin
Newport Beach
Oakland
Waukegan
Midland
Answer: Midland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Midland" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "79701-12" . } UNION { ?e <pred:name> "Newport Beach" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Midland
function: FilterStr
dependencies: 0
inputs: postal code
79701-12
function: Find
inputs: Newport Beach
function: SelectBetween
dependencies: 1
2
inputs: area
greater