Question: Which political party has Peter Cook (the one that has the occupation of politician) as a member?
Choices: Conservative Party of Canada
Labour Party
Liberal Party of Canada
Indian National Congress
Ontario Liberal Party
Democratic Unionist Party
Nazi Party
Australian Labor Party
Alliance '90/The Greens
United National 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:name> "Peter Cook" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "politician" .   }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Peter Cook
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of political party
forward
function: FilterConcept
dependencies: 4
inputs: political party
function: What
dependencies: 5
Answer: Australian Labor Party