Question: What is the connection between Gordon Brown (the one whose parliament.uk biography pages is commons/mr-gordon-brown/591) to Prime Minister of the United Kingdom?
Choices:
next lower rank
airline hub
item operated
approved by
movement
manufacturer
screenwriter
head of government
position held
commander of
Answer: position held
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gordon Brown" . ?e_1 <parliament.uk_biography_pages> ?pv . ?pv <pred:value> "commons/mr-gordon-brown/591" . ?e_2 <pred:name> "Prime Minister of the United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Gordon Brown
function: FilterStr
dependencies: 0
inputs: parliament.uk biography pages
commons/mr-gordon-brown/591
function: Find
inputs: Prime Minister of the United Kingdom
function: QueryRelation
dependencies: 1
2