Question: What political party has a member whose child is named Josh Brolin?
Choices:
Republican Party
Democratic Party
Labour Party
Conservative Party of Canada
Progressive Conservative Party of Canada
Federalist Party
Communist Party of China
Liberal Party of the Philippines
Bharatiya Janata Party
Conservative Party
Answer: Democratic Party
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e_1 <member_of_political_party> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <child> ?e_2 . ?e_2 <pred:name> "Josh Brolin" .   }
Program:
function: Find
inputs: Josh Brolin
function: Relate
dependencies: 0
inputs: child
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: member of political party
forward
function: FilterConcept
dependencies: 3
inputs: political party
function: What
dependencies: 4