Question: What is the relationship between Dan Schneider (the one that has the occupation of actor) and screenwriter?
Choices:
office held by head of government
grants
occupation
family
instrumentation
executive producer
parent club
found
software engine
dedicated to
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Dan Schneider
function: And
dependencies: 1
2
function: Find
inputs: screenwriter
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Dan Schneider" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_2 <pred:name> "screenwriter" . ?e_1 ?p ?e_2 .  }
Answer: occupation