Question: What is the relationship between The Shining (the one that has Elliott Gould as a cast member) and Pat Hingle?
Choices:
dedicated to
film release region
applies to jurisdiction
appears in the form of
movement
designed by
start point
subject has role
cast member
writing system
Program:
function: Find
inputs: Elliott Gould
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Shining
function: And
dependencies: 1
2
function: Find
inputs: Pat Hingle
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Shining" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Elliott Gould" . ?e_2 <pred:name> "Pat Hingle" . ?e_1 ?p ?e_2 .  }
Answer: cast member