Question: Which area is smaller, Auburn (the one that is located in Cayuga County) or Syracuse (the one whose official website is http://www.syracuse.ny.us)?
Choices:
Auburn
Glens Falls
Troy
Yonkers
White Plains
Utica
Syracuse
Elmira
Glen Cove
Long Beach
Program:
function: Find
inputs: Cayuga County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Auburn
function: And
dependencies: 1
2
function: Find
inputs: Syracuse
function: FilterStr
dependencies: 4
inputs: official website
http://www.syracuse.ny.us
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Auburn" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Cayuga County" . } UNION { ?e <pred:name> "Syracuse" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.syracuse.ny.us" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Auburn