Question: Which has a greater area, Hastings which has a local dialing code of 651, or Oceanside?
Choices:
Waukegan
Oakland
Hastings
Columbus
Lansing
Compton
Franklin
Greenville
Oceanside
New Haven
Program:
function: Find
inputs: Hastings
function: FilterStr
dependencies: 0
inputs: local dialing code
651
function: Find
inputs: Oceanside
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hastings" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "651" . } UNION { ?e <pred:name> "Oceanside" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Oceanside