Question: How is James Joyce (uses English as the native language) related to writer?
Choices: capital
occupation
native language
continent
has parts of the class
month of the year
has immediate cause
sex or gender
office held by head of the organisation
had as last meal
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Joyce" . ?e_1 <native_language> ?e_3 . ?e_3 <pred:name> "English" . ?e_2 <pred:name> "writer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: native language
backward
function: Find
inputs: James Joyce
function: And
dependencies: 1
2
function: Find
inputs: writer
function: QueryRelation
dependencies: 3
4
Answer: occupation