Question: How is democrat John Williams related to politician?
Choices:
official language
occupation
has contributing factor
affiliation
facet of
candidacy in election
contributor(s) to the creative work
contributing factor of
is a list of
candidate
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Williams" . ?e_1 <member_of_political_party> ?e_3 . ?e_3 <pred:name> "Democratic Party" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Democratic Party
function: Relate
dependencies: 0
inputs: member of political party
backward
function: Find
inputs: John Williams
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4