Question: Which area is larger, Dumfries and Galloway or Middlesex County (the one that shares border with New London County)?
Choices:
Delaware County
Washoe County
Cass County
Middlesex County
San Juan County
Greene County
Lee County
Dumfries and Galloway
African Union
Orange County
Answer: Dumfries and Galloway
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dumfries and Galloway" .  } UNION { ?e <pred:name> "Middlesex County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "New London County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dumfries and Galloway
function: Find
inputs: New London County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Middlesex County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater