Question: What is the connection between Alan Bates (the one that has the occupation of politician) to Democratic Party?
Choices: has immediate cause
present in work
work location
member of political party
diaspora
author
partially contains
religious order
lifestyle
office held by head of government
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alan Bates" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "Democratic Party" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Alan Bates
function: And
dependencies: 1
2
function: Find
inputs: Democratic Party
function: QueryRelation
dependencies: 3
4
Answer: member of political party