Question: Which of two counties, Milwaukee County or Jefferson County (which borders Waukesha County), has more area?
Choices:
Wood County
Jackson County
Pierce County
La Crosse County
Polk County
Milwaukee County
Fond du Lac County
Columbia County
Outagamie County
Washington County
Answer: Milwaukee County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Milwaukee County" .  } UNION { ?e <pred:name> "Jefferson County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Waukesha County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Milwaukee County
function: Find
inputs: Waukesha County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Jefferson County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater