Question: Is there a greater area in Livonia or in Odessa (the one whose postal code is 79761–79766)?
Choices:
Waukegan
New Haven
Lansing
Columbus
Boulder
Franklin
Odessa
Greenville
Compton
Oakland
Program:
function: Find
inputs: Livonia
function: Find
inputs: Odessa
function: FilterStr
dependencies: 1
inputs: postal code
79761–79766
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Livonia" . } UNION { ?e <pred:name> "Odessa" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "79761–79766" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Odessa