Question: Which area is smaller, Warren County (the one that partially contains Adirondack Mountains) or Madison County (the one that shares border with Oneida County)?
Choices: Albany County
Rensselaer County
Warren County
Cayuga County
Clinton County
Jefferson County
Chautauqua County
Orange County
Niagara County
Madison County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Warren County" . ?e <partially_contains> ?e_1 . ?e_1 <pred:name> "Adirondack Mountains" .   } UNION { ?e <pred:name> "Madison County" . ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Oneida County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Adirondack Mountains
function: Relate
dependencies: 0
inputs: partially contains
backward
function: Find
inputs: Warren County
function: And
dependencies: 1
2
function: Find
inputs: Oneida County
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Madison County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
Answer: Madison County