Question: What is the relation between Paul (the one whose script was written by Simon Pegg) with Seth Rogen?
Choices:
diplomatic relation
uses
contributor(s) to the creative work
founded by
mountain range
material used
legislative body
cast member
mother
soundtrack album
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Paul" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Simon Pegg" . ?e_2 <pred:name> "Seth Rogen" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Simon Pegg
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Paul
function: And
dependencies: 1
2
function: Find
inputs: Seth Rogen
function: QueryRelation
dependencies: 3
4