Question: Which Alabama county has the US-based capital city where Sun Ra died?
Choices:
Shelby County
Jefferson County
Dallas County
Mobile County
Madison County
Montgomery County
Jackson County
Monroe County
Washington County
Baldwin County
Program:
function: Find
inputs: Sun Ra
function: Relate
dependencies: 0
inputs: place of death
forward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Relate
dependencies: 2
inputs: capital
backward
function: FilterConcept
dependencies: 3
inputs: county of Alabama
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_3 <place_of_death> ?e_1 . ?e_3 <pred:name> "Sun Ra" .   }
Answer: Jefferson County