Question: Which Wisconsin county with the capital Waukesha is also the location of Milwaukee?
Choices:
Jackson County
Milwaukee County
Columbia County
Outagamie County
Fond du Lac County
Washington County
Polk County
Wood County
Waukesha County
La Crosse County
Program:
function: Find
inputs: Waukesha
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: county of Wisconsin
function: Find
inputs: Milwaukee
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Wisconsin
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Wisconsin" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Waukesha" .  ?e_2 <located_in_the_administrative_territorial_entity> ?e . ?e_2 <pred:name> "Milwaukee" .  }
Answer: Waukesha County