Question: Which has less area, Burlington County or Mercer County that has the captital Trenton?
Choices:
Bergen County
Hunterdon County
Cumberland County
Hudson County
Gloucester County
Burlington County
Mercer County
Essex County
Monmouth County
Morris County
Program:
function: Find
inputs: Burlington County
function: Find
inputs: Trenton
function: Relate
dependencies: 1
inputs: capital
backward
function: Find
inputs: Mercer County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Burlington County" .  } UNION { ?e <pred:name> "Mercer County" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Trenton" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mercer County