Question: Which area is larger, Steuben County or Livingston County (the one that shares border with Steuben County)?
Choices: Warren County
Livingston County
Steuben County
Niagara County
Orange County
Greene County
Albany County
Jefferson County
Clinton County
Cayuga County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Steuben County" .  } UNION { ?e <pred:name> "Livingston County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Steuben County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Steuben County
function: Find
inputs: Steuben County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Livingston County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
Answer: Steuben County