Question: What is the connection between Ben Johnson (whose work location is Washington, D.C.) and lawyer?
Choices:
spouse
copyright representative
founded by
located in time zone
occupation
geographic distribution
has cause
academic degree
time period
make-up artist
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Ben Johnson" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Washington, D.C." . ?e_2 <pred:name> "lawyer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Washington, D.C.
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: Ben Johnson
function: And
dependencies: 1
2
function: Find
inputs: lawyer
function: QueryRelation
dependencies: 3
4