Question: How is Thomas Mitchell (whose occupation is screenwriter) related to screenwriter?
Choices:
practiced by
league
occupation
father
operating area
capital
sport
architect
currency
soundtrack album
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Thomas Mitchell" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "screenwriter" . ?e_2 <pred:name> "screenwriter" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Thomas Mitchell
function: And
dependencies: 1
2
function: Find
inputs: screenwriter
function: QueryRelation
dependencies: 3
4