Question: Which area is larger, Erie County (the one that contains the administrative division Buffalo) or Herkimer County?
Choices:
Herkimer County
Clinton County
Greene County
Rensselaer County
Cayuga County
Albany County
Orange County
Niagara County
Erie County
Jefferson County
Program:
function: Find
inputs: Buffalo
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Erie County
function: And
dependencies: 1
2
function: Find
inputs: Herkimer County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Erie County" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Buffalo" .   } UNION { ?e <pred:name> "Herkimer County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Herkimer County