Question: Which area is larger, Middlesex County (the one that shares border with Hartford County) or Bristol County (the one that is a part of Rhode Island)?
Choices:
Lee County
Orange County
Greene County
San Juan County
Washoe County
Bristol County
African Union
Delaware County
Middlesex County
Kent County
Answer: Middlesex County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Middlesex County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Hartford County" .   } UNION { ?e <pred:name> "Bristol County" . ?e <part_of> ?e_2 . ?e_2 <pred:name> "Rhode Island" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hartford County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Middlesex County
function: And
dependencies: 1
2
function: Find
inputs: Rhode Island
function: Relate
dependencies: 4
inputs: part of
backward
function: Find
inputs: Bristol County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater