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