Question: How is John Williams who works in Raleigh related to judge?
Choices:
culture
occupation
mother
month of the year
penalty
ethnic group
has edition
dialect of
child
business division
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Williams" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Raleigh" . ?e_2 <pred:name> "judge" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Raleigh
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: John Williams
function: And
dependencies: 1
2
function: Find
inputs: judge
function: QueryRelation
dependencies: 3
4