Question: What is the connection between Bryan Adams (whose profession is politician) and Baton Rouge?
Choices:
sponsor
patron saint
noble title
home port
general manager
famous people
works in collection
film release region
work location
broadcast by
Answer: work location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bryan Adams" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "Baton Rouge" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Bryan Adams
function: And
dependencies: 1
2
function: Find
inputs: Baton Rouge
function: QueryRelation
dependencies: 3
4