Question: What is the relationship between True Grit, distributed by Paramount Pictures, and John Wayne?
Choices:
studies
cast member
relative
connects with
separated from
operator
doctoral advisor
stated in
partially contains
donated by
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: True Grit
function: And
dependencies: 1
2
function: Find
inputs: John Wayne
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "True Grit" . ?e_1 <distributor> ?e_3 . ?e_3 <pred:name> "Paramount Pictures" . ?e_2 <pred:name> "John Wayne" . ?e_1 ?p ?e_2 .  }
Answer: cast member