Question: Which occupies more space, Fulton County (bordering Saratoga County) or Oswego County?
Choices:
Greene County
Niagara County
Rensselaer County
Oswego County
Warren County
Orange County
Cayuga County
Albany County
Fulton County
Clinton County
Answer: Oswego County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fulton County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Saratoga County" .   } UNION { ?e <pred:name> "Oswego County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Saratoga County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Fulton County
function: And
dependencies: 1
2
function: Find
inputs: Oswego County
function: SelectBetween
dependencies: 3
4
inputs: area
greater