Question: Which county in Wisconsin that shares a border with Columbia County, which shares a border with Sauk County, has the largest area?
Choices:
Jackson County
Washington County
Wood County
Fond du Lac County
Polk County
Outagamie County
Columbia County
Dane County
La Crosse County
Jefferson County
Program:
function: Find
inputs: Sauk County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Columbia County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: county of Wisconsin
function: SelectAmong
dependencies: 5
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Wisconsin" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Columbia County" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Sauk County" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dane County