Question: What is the relationship between The Bodyguard (the one whose production company is Metro-Goldwyn-Mayer) and Fred Quimby ?
Choices:
religion
producer
doctoral student
dedicated to
influenced by
this taxon is source of
has parts of the class
has cause
replaced by
official symbol
Answer: producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Bodyguard" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Metro-Goldwyn-Mayer" . ?e_2 <pred:name> "Fred Quimby" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 1
2
function: Find
inputs: Fred Quimby
function: QueryRelation
dependencies: 3
4