Question: Which area is smaller, Mercer County (the one that contains Trenton) or Monmouth County?
Choices:
Gloucester County
Burlington County
Essex County
Mercer County
Cumberland County
Morris County
Passaic County
Monmouth County
Bergen County
Hudson County
Program:
function: Find
inputs: Trenton
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Mercer County
function: And
dependencies: 1
2
function: Find
inputs: Monmouth County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mercer County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Trenton" .   } UNION { ?e <pred:name> "Monmouth County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mercer County