Question: Which area is smaller, Kensington (the one that shares border with Bethesda) or Bryn Mawr?
Choices: Uxbridge
Greenwich
Kensington
Bedford
Bryn Mawr
Litchfield
Chapel Hill
Westport
Brookline
Amherst
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kensington" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Bethesda" .   } UNION { ?e <pred:name> "Bryn Mawr" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Bethesda
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Kensington
function: And
dependencies: 1
2
function: Find
inputs: Bryn Mawr
function: SelectBetween
dependencies: 3
4
inputs: area
less
Answer: Kensington