Question: How is the Jewish Philip Roth related to William Faulkner?
Choices:
influenced by
captain
has part
headquarters location
professional or sports partner
interested in
based on
legislative body
culture
highest judicial authority
Program:
function: Find
inputs: Judaism
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Philip Roth
function: And
dependencies: 1
2
function: Find
inputs: William Faulkner
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Philip Roth" . ?e_1 <religion> ?e_3 . ?e_3 <pred:name> "Judaism" . ?e_2 <pred:name> "William Faulkner" . ?e_1 ?p ?e_2 .  }
Answer: influenced by