Question: What is the connection between John Broome (the one that has the occupation of writer) to writer?
Choices:
organizer
medical treatment
designed by
candidate
set in period
make-up artist
occupation
award disciplines or subjects
mountain range
has part
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Broome" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "writer" . ?e_2 <pred:name> "writer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Broome
function: And
dependencies: 1
2
function: Find
inputs: writer
function: QueryRelation
dependencies: 3
4