Question: What is the relationship between The Alamo (the one whose production company is Imagine Entertainment) to Ron Howard (the one that is a cast member of American Graffiti)?
Choices: source of material
product or material produced
copyright holder
color
has parts of the class
located on terrain feature
producer
location
exclave of
enclave within
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Alamo" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Imagine Entertainment" . ?e_2 <pred:name> "Ron Howard" . ?e_4 <cast_member> ?e_2 . ?e_4 <pred:name> "American Graffiti" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Imagine Entertainment
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Alamo
function: And
dependencies: 1
2
function: Find
inputs: American Graffiti
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Ron Howard
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: producer