Question: What is the tie-in between Amy Adams (whose occupation is lawyer) and the New Zealand National Party?
Choices: distribution
medical treatment
spouse
member of political party
legal form
participant
depicts
award disciplines or subjects
update method
successful candidate
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Amy Adams" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "lawyer" . ?e_2 <pred:name> "New Zealand National Party" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: lawyer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Amy Adams
function: And
dependencies: 1
2
function: Find
inputs: New Zealand National Party
function: QueryRelation
dependencies: 3
4
Answer: member of political party