Question: Which human is educated at Cardiff University and is a member of the political party Labour Party (whose headquarters location is City of Westminster)?
Choices: Gordon Brown
Patrick Stewart
Brian Wilson
Chris Evans
Sylvester Stallone
Craig Thomas
Helen Hayes
Max Fleischer
Robert Evans
Nick Broomfield
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "Cardiff University" .  ?e <member_of_political_party> ?e_2 . ?e_2 <pred:name> "Labour Party" . ?e_2 <headquarters_location> ?e_3 . ?e_3 <pred:name> "City of Westminster" .  }
Program:
function: Find
inputs: Cardiff University
function: Relate
dependencies: 0
inputs: educated at
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: City of Westminster
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: Find
inputs: Labour Party
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: member of political party
backward
function: FilterConcept
dependencies: 7
inputs: human
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Brian Wilson