Question: Which area is larger, Livingston County (the one that shares border with Oakland County) or Berrien County?
Choices:
Washtenaw County
Livingston County
Macomb County
Genesee County
Marquette County
Monroe County
Tuscola County
Clinton County
Saginaw County
Berrien County
Answer: Berrien County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Livingston County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Oakland County" .   } UNION { ?e <pred:name> "Berrien County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Oakland County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Livingston County
function: And
dependencies: 1
2
function: Find
inputs: Berrien County
function: SelectBetween
dependencies: 3
4
inputs: area
greater